mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-17 04:12:34 +03:00
kernel: button draw optimization (removed unnecessary overlapping)
git-svn-id: svn://kolibrios.org@5580 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
f080d95989
commit
b974927cc8
@ -112,9 +112,11 @@ syscall_button: ;///// system function 8 //////////////////////////////////////
|
|||||||
add ebx, [eax - twdw + WDATA.box.left]
|
add ebx, [eax - twdw + WDATA.box.left]
|
||||||
add ecx, [eax - twdw + WDATA.box.top]
|
add ecx, [eax - twdw + WDATA.box.top]
|
||||||
mov eax, ebx
|
mov eax, ebx
|
||||||
|
inc eax
|
||||||
shl eax, 16
|
shl eax, 16
|
||||||
mov ax, bx
|
mov ax, bx
|
||||||
add ax, word[esp + 16]
|
add ax, word[esp + 16]
|
||||||
|
dec ax
|
||||||
mov ebx, ecx
|
mov ebx, ecx
|
||||||
shl ebx, 16
|
shl ebx, 16
|
||||||
mov bx, cx
|
mov bx, cx
|
||||||
@ -128,6 +130,8 @@ syscall_button: ;///// system function 8 //////////////////////////////////////
|
|||||||
; set button height counter
|
; set button height counter
|
||||||
@@:
|
@@:
|
||||||
mov edx, edi
|
mov edx, edi
|
||||||
|
add ebx, 0x00010001
|
||||||
|
dec edx
|
||||||
|
|
||||||
.next_line:
|
.next_line:
|
||||||
call button._.button_dececx
|
call button._.button_dececx
|
||||||
@ -192,6 +196,7 @@ syscall_button: ;///// system function 8 //////////////////////////////////////
|
|||||||
mov ecx, esi
|
mov ecx, esi
|
||||||
call button._.incecx
|
call button._.incecx
|
||||||
; call [draw_line]
|
; call [draw_line]
|
||||||
|
dec ebx
|
||||||
call __sys_draw_line
|
call __sys_draw_line
|
||||||
|
|
||||||
; right border
|
; right border
|
||||||
|
Loading…
Reference in New Issue
Block a user