From 234f8b76b2768f11b7dd833624b2f1c28ebb9135 Mon Sep 17 00:00:00 2001 From: GerdtR Date: Fri, 4 Oct 2013 09:43:01 +0000 Subject: [PATCH] Restored file bgredraw.inc git-svn-id: svn://kolibrios.org@3974 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/icon_new/bgredraw.inc | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 programs/system/icon_new/bgredraw.inc diff --git a/programs/system/icon_new/bgredraw.inc b/programs/system/icon_new/bgredraw.inc new file mode 100644 index 0000000000..329e7fba8d --- /dev/null +++ b/programs/system/icon_new/bgredraw.inc @@ -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 + + + + + + +