From d2b0bd402d6dbbe081b93af611aa46d084d6193b Mon Sep 17 00:00:00 2001 From: pathoswithin Date: Thu, 7 Jan 2016 08:45:03 +0000 Subject: [PATCH] Button press style git-svn-id: svn://kolibrios.org@6035 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/button.inc | 36 +++++++++++------------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/kernel/trunk/gui/button.inc b/kernel/trunk/gui/button.inc index fc7a67226c..83d3b85310 100644 --- a/kernel/trunk/gui/button.inc +++ b/kernel/trunk/gui/button.inc @@ -1,6 +1,6 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; +;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;; ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; ;; Distributed under terms of the GNU General Public License ;; ;; ;; @@ -306,32 +306,18 @@ sys_button_deactivate_handler: mov ebx, dword[esi + SYS_BUTTON.top] add eax, [ecx + WDATA.box.left] add ebx, [ecx + WDATA.box.top] + mov ecx, eax + mov edx, ebx + inc ax + inc bx rol eax, 16 rol ebx, 16 - push eax ebx - shr eax, 16 - shr ebx, 16 - mov edx, eax - add dx, [esp+4] - dec edx - inc eax - mov ecx, 1000000h - xor edi, edi - inc edi - call hline - add bx, [esp] - call hline - inc edx - push edx - mov edx, ebx - sub bx, [esp+4] - dec eax - dec edx - inc ebx - call vline - pop eax - call vline - pop eax eax + add ax, cx + add bx, dx + dec ax + dec bx + mov esi, 1000000h + call draw_rectangle.forced popad .exit: ret