Restored file bgredraw.inc
git-svn-id: svn://kolibrios.org@3974 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
89f89f20aa
commit
234f8b76b2
44
programs/system/icon_new/bgredraw.inc
Normal file
44
programs/system/icon_new/bgredraw.inc
Normal file
@ -0,0 +1,44 @@
|
||||
BGRedrawThread:
|
||||
|
||||
mcall 40,010000b
|
||||
|
||||
|
||||
BGRTmessages:
|
||||
mcall 10
|
||||
sub eax,5
|
||||
jz BGRTRedrawIcons
|
||||
|
||||
jmp BGRTmessages
|
||||
|
||||
BGRTRedrawIcons:
|
||||
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]
|
||||
test ecx,ecx
|
||||
jz .NoDraw
|
||||
xor ebx,ebx
|
||||
@@: push ecx
|
||||
cmp [IconNoDraw],ebx
|
||||
je .nd
|
||||
stdcall DrawIcon,ebx,0
|
||||
.nd:
|
||||
inc ebx
|
||||
pop ecx
|
||||
loop @b
|
||||
.NoDraw:
|
||||
jmp BGRTmessages
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user