From b974927cc8716fb5643fe3cb1f7f7f95d9a7893c Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 19 Jul 2015 15:56:04 +0000 Subject: [PATCH] kernel: button draw optimization (removed unnecessary overlapping) git-svn-id: svn://kolibrios.org@5580 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/button.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/trunk/gui/button.inc b/kernel/trunk/gui/button.inc index c320b6b6e..e4e6fc054 100644 --- a/kernel/trunk/gui/button.inc +++ b/kernel/trunk/gui/button.inc @@ -112,9 +112,11 @@ syscall_button: ;///// system function 8 ////////////////////////////////////// add ebx, [eax - twdw + WDATA.box.left] add ecx, [eax - twdw + WDATA.box.top] mov eax, ebx + inc eax shl eax, 16 mov ax, bx add ax, word[esp + 16] + dec ax mov ebx, ecx shl ebx, 16 mov bx, cx @@ -128,6 +130,8 @@ syscall_button: ;///// system function 8 ////////////////////////////////////// ; set button height counter @@: mov edx, edi + add ebx, 0x00010001 + dec edx .next_line: call button._.button_dececx @@ -192,6 +196,7 @@ syscall_button: ;///// system function 8 ////////////////////////////////////// mov ecx, esi call button._.incecx ; call [draw_line] + dec ebx call __sys_draw_line ; right border