forked from KolibriOS/kolibrios
Now take into account also the upper-left corner of the workspace.
git-svn-id: svn://kolibrios.org@4146 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0dbb12299d
commit
8068f9225d
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,38 +1,50 @@
|
|||||||
BGRedrawThread:
|
BGRedrawThread:
|
||||||
|
|
||||||
mcall 40,010000b
|
mcall 40,010000b
|
||||||
|
|
||||||
BGRTRedrawIcons:
|
BGRTRedrawIcons:
|
||||||
mcall 48,5
|
mcall 48,5
|
||||||
mov dx,ax
|
|
||||||
shr eax,16
|
|
||||||
sub dx,ax
|
|
||||||
mov [ScreenX],dx
|
|
||||||
mov ax,bx
|
|
||||||
shr ebx,16
|
|
||||||
sub ax,bx
|
|
||||||
mov [ScreenY],ax
|
|
||||||
|
|
||||||
mov ecx,[MaxNumIcon]
|
mov [wsXe],ax
|
||||||
test ecx,ecx
|
mov [wsYe],bx
|
||||||
jz .NoDraw
|
|
||||||
xor ebx,ebx
|
mov dx,ax
|
||||||
@@: push ecx
|
shr eax,16
|
||||||
cmp [IconNoDraw],ebx
|
mov [wsX],ax
|
||||||
je .nd
|
sub dx,ax
|
||||||
stdcall DrawIcon,ebx,0
|
mov [wsW],dx
|
||||||
|
|
||||||
|
mov ax,bx
|
||||||
|
shr ebx,16
|
||||||
|
mov [wsY],bx
|
||||||
|
sub ax,bx
|
||||||
|
mov [wsH],ax
|
||||||
|
|
||||||
|
mcall 14
|
||||||
|
mov [ScreenH],ax
|
||||||
|
shr eax,16
|
||||||
|
mov [ScreenW],ax
|
||||||
|
|
||||||
|
mov ecx,[MaxNumIcon]
|
||||||
|
test ecx,ecx
|
||||||
|
jz .NoDraw
|
||||||
|
xor ebx,ebx
|
||||||
|
@@: push ecx
|
||||||
|
cmp [IconNoDraw],ebx
|
||||||
|
je .nd
|
||||||
|
stdcall DrawIcon,ebx,0
|
||||||
.nd:
|
.nd:
|
||||||
inc ebx
|
inc ebx
|
||||||
pop ecx
|
pop ecx
|
||||||
loop @b
|
loop @b
|
||||||
.NoDraw:
|
.NoDraw:
|
||||||
|
|
||||||
BGRTmessages:
|
BGRTmessages:
|
||||||
mcall 10
|
mcall 10
|
||||||
sub eax,5
|
sub eax,5
|
||||||
jz BGRTRedrawIcons
|
jz BGRTRedrawIcons
|
||||||
|
|
||||||
jmp BGRTmessages
|
jmp BGRTmessages
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user