From 9e5b90e354b16eaf0084e1669ded5b56aba379ae Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Tue, 20 Sep 2011 00:07:56 +0000 Subject: [PATCH] window.inc - fix for r.1474 git-svn-id: svn://kolibrios.org@2214 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/window.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/gui/window.inc b/kernel/trunk/gui/window.inc index 2cb04f94ad..3ed545ab66 100644 --- a/kernel/trunk/gui/window.inc +++ b/kernel/trunk/gui/window.inc @@ -1306,7 +1306,18 @@ end if mov ecx, 4 repz cmpsd pop edi - jz .exit + jnz @f + + mov edi,eax + mov eax, [edi + BOX.left - 2] + mov ax, word[edi + BOX.left] + add ax, word[edi + BOX.width] + mov ebx, [edi + BOX.top - 2] + mov bx, word[edi + BOX.top] + add bx, word[edi + BOX.height] + xor esi,esi + call draw_rectangle.forced + jmp .exit @@: add esp, -BOX.sizeof