From 61ebcdda39c8febbf1d2bc3190554b322ed20e4d Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sat, 26 Dec 2015 13:24:58 +0000 Subject: [PATCH] kernel: change buttons style git-svn-id: svn://kolibrios.org@6009 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/button.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/gui/button.inc b/kernel/trunk/gui/button.inc index e4e6fc054d..a7bae8c47a 100644 --- a/kernel/trunk/gui/button.inc +++ b/kernel/trunk/gui/button.inc @@ -168,10 +168,16 @@ syscall_button: ;///// system function 8 ////////////////////////////////////// push ebx xor edi, edi mov ecx, esi - call button._.incecx + ; call button._.incecx ; call [draw_line] call __sys_draw_line + ; light line under top border + add ebx, 0x00010001 + mov ecx, esi + call button._.incecx + call __sys_draw_line + sub ebx, 0x00010001 ; bottom border movzx edx, word[esp + 4 + 0] add ebx, edx @@ -194,7 +200,7 @@ syscall_button: ;///// system function 8 ////////////////////////////////////// add bx, [esp + 4 + 0] pop edx mov ecx, esi - call button._.incecx + call button._.dececx ; button._.incecx ; call [draw_line] dec ebx call __sys_draw_line