forked from KolibriOS/kolibrios
When you move window, background is restored only to the old position is now. Some speedup!
git-svn-id: svn://kolibrios.org@2514 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
659824c952
commit
370072a7fd
@ -1351,43 +1351,15 @@ window._.invalidate_screen: ;//////////////////////////////////////////////////
|
|||||||
|
|
||||||
; TODO: do we really need `draw_limits`?
|
; TODO: do we really need `draw_limits`?
|
||||||
; Yes, they are used by background drawing code.
|
; Yes, they are used by background drawing code.
|
||||||
mov ecx, [eax + BOX.left]
|
|
||||||
mov edx, [ebx + BOX.left]
|
; we need only to restore the background windows at the old place!
|
||||||
cmp ecx, edx
|
mov ecx, [ebx + BOX.left]
|
||||||
jle @f
|
|
||||||
mov ecx, edx
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
@@:
|
|
||||||
mov [draw_limits.left], ecx
|
mov [draw_limits.left], ecx
|
||||||
mov ecx, [eax + BOX.left]
|
add ecx, [ebx + BOX.width]
|
||||||
add ecx, [eax + BOX.width]
|
|
||||||
add edx, [ebx + BOX.width]
|
|
||||||
cmp ecx, edx
|
|
||||||
jae @f
|
|
||||||
mov ecx, edx
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
@@:
|
|
||||||
mov [draw_limits.right], ecx
|
mov [draw_limits.right], ecx
|
||||||
mov ecx, [eax + BOX.top]
|
mov ecx, [ebx + BOX.top]
|
||||||
mov edx, [ebx + BOX.top]
|
|
||||||
cmp ecx, edx
|
|
||||||
jle @f
|
|
||||||
mov ecx, edx
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
@@:
|
|
||||||
mov [draw_limits.top], ecx
|
mov [draw_limits.top], ecx
|
||||||
mov ecx, [eax + BOX.top]
|
add ecx, [ebx + BOX.height]
|
||||||
add ecx, [eax + BOX.height]
|
|
||||||
add edx, [ebx + BOX.height]
|
|
||||||
cmp ecx, edx
|
|
||||||
jae @f
|
|
||||||
mov ecx, edx
|
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
@@:
|
|
||||||
mov [draw_limits.bottom], ecx
|
mov [draw_limits.bottom], ecx
|
||||||
; recalculate screen buffer at old position
|
; recalculate screen buffer at old position
|
||||||
push ebx
|
push ebx
|
||||||
|
Loading…
Reference in New Issue
Block a user