Button press style

git-svn-id: svn://kolibrios.org@6035 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pathoswithin 2016-01-07 08:45:03 +00:00
parent 3f00e8b196
commit d2b0bd402d

View File

@ -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 ;; ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;;
;; Distributed under terms of the GNU General Public License ;; ;; Distributed under terms of the GNU General Public License ;;
;; ;; ;; ;;
@ -306,32 +306,18 @@ sys_button_deactivate_handler:
mov ebx, dword[esi + SYS_BUTTON.top] mov ebx, dword[esi + SYS_BUTTON.top]
add eax, [ecx + WDATA.box.left] add eax, [ecx + WDATA.box.left]
add ebx, [ecx + WDATA.box.top] add ebx, [ecx + WDATA.box.top]
mov ecx, eax
mov edx, ebx
inc ax
inc bx
rol eax, 16 rol eax, 16
rol ebx, 16 rol ebx, 16
push eax ebx add ax, cx
shr eax, 16 add bx, dx
shr ebx, 16 dec ax
mov edx, eax dec bx
add dx, [esp+4] mov esi, 1000000h
dec edx call draw_rectangle.forced
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
popad popad
.exit: .exit:
ret ret