Optimization f.15.8
git-svn-id: svn://kolibrios.org@2537 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
7d5ed0a7fd
commit
bd6c0291ed
@ -2689,13 +2689,10 @@ align 4
|
|||||||
nosb7:
|
nosb7:
|
||||||
cmp ebx, 8
|
cmp ebx, 8
|
||||||
jnz nosb8
|
jnz nosb8
|
||||||
mov eax, [draw_data+32 + RECT.left]
|
|
||||||
shl eax, 16
|
mov eax, [BG_Rect_X_left_right]
|
||||||
add eax, [draw_data+32 + RECT.right]
|
|
||||||
mov [esp + 32], eax ; eax = [left]*65536 + [right]
|
mov [esp + 32], eax ; eax = [left]*65536 + [right]
|
||||||
mov eax, [draw_data+32 + RECT.top]
|
mov eax, [BG_Rect_Y_top_bottom]
|
||||||
shl eax, 16
|
|
||||||
add eax, [draw_data+32 + RECT.bottom]
|
|
||||||
mov [esp + 20], eax ; ebx = [top]*65536 + [bottom]
|
mov [esp + 20], eax ; ebx = [top]*65536 + [bottom]
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
@ -2704,6 +2701,12 @@ nosb8:
|
|||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
|
uglobal
|
||||||
|
BG_Rect_X_left_right dd 0x0
|
||||||
|
BG_Rect_Y_top_bottom dd 0x0
|
||||||
|
endg
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
force_redraw_background:
|
force_redraw_background:
|
||||||
and [draw_data+32 + RECT.left], 0
|
and [draw_data+32 + RECT.left], 0
|
||||||
and [draw_data+32 + RECT.top], 0
|
and [draw_data+32 + RECT.top], 0
|
||||||
@ -3299,6 +3302,18 @@ mouse_not_active:
|
|||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
align 4
|
align 4
|
||||||
@@:
|
@@:
|
||||||
|
push eax
|
||||||
|
mov eax, [draw_data+32 + RECT.left]
|
||||||
|
shl eax, 16
|
||||||
|
add eax, [draw_data+32 + RECT.right]
|
||||||
|
mov [BG_Rect_X_left_right], eax ; [left]*65536 + [right]
|
||||||
|
|
||||||
|
mov eax, [draw_data+32 + RECT.top]
|
||||||
|
shl eax, 16
|
||||||
|
add eax, [draw_data+32 + RECT.bottom]
|
||||||
|
mov [BG_Rect_Y_top_bottom], eax ; [top]*65536 + [bottom]
|
||||||
|
pop eax
|
||||||
|
|
||||||
call drawbackground
|
call drawbackground
|
||||||
;--------- set event 5 start ----------
|
;--------- set event 5 start ----------
|
||||||
push ecx edi
|
push ecx edi
|
||||||
@ -3311,15 +3326,14 @@ set_bgr_event:
|
|||||||
or [edi+SLOT_BASE+APPDATA.event_mask], 10000b ; set event 5
|
or [edi+SLOT_BASE+APPDATA.event_mask], 10000b ; set event 5
|
||||||
loop set_bgr_event
|
loop set_bgr_event
|
||||||
pop edi ecx
|
pop edi ecx
|
||||||
|
; call change_task - because the application must have time to call f.15.8
|
||||||
|
call change_task
|
||||||
;--------- set event 5 stop -----------
|
;--------- set event 5 stop -----------
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
xchg al, [REDRAW_BACKGROUND]
|
xchg al, [REDRAW_BACKGROUND]
|
||||||
test al, al ; got new update request?
|
test al, al ; got new update request?
|
||||||
jnz @b
|
jnz @b
|
||||||
|
|
||||||
; call change_task - because the application must have time to call f.15.8
|
|
||||||
call change_task
|
|
||||||
|
|
||||||
mov [draw_data+32 + RECT.left], eax
|
mov [draw_data+32 + RECT.left], eax
|
||||||
mov [draw_data+32 + RECT.top], eax
|
mov [draw_data+32 + RECT.top], eax
|
||||||
mov [draw_data+32 + RECT.right], eax
|
mov [draw_data+32 + RECT.right], eax
|
||||||
|
Loading…
Reference in New Issue
Block a user