mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-28 11:43:09 +03:00
optimize set_window_box: do nothing if new box is the same as old one
git-svn-id: svn://kolibrios.org@1474 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
c59969f41c
commit
c5397f9cf2
@ -1288,6 +1288,20 @@ window._.set_window_box: ;/////////////////////////////////////////////////////
|
||||
;------------------------------------------------------------------------------
|
||||
push eax ebx esi
|
||||
|
||||
; don't do anything if the new box is identical to the old
|
||||
cmp bl, [edi + WDATA.fl_wstate]
|
||||
jnz @f
|
||||
mov esi, eax
|
||||
push edi
|
||||
if WDATA.box
|
||||
add edi, WDATA.box
|
||||
end if
|
||||
mov ecx, 4
|
||||
repz cmpsd
|
||||
pop edi
|
||||
jz .exit
|
||||
@@:
|
||||
|
||||
add esp, -BOX.sizeof
|
||||
|
||||
mov ebx, esp
|
||||
|
@ -3226,7 +3226,7 @@ redrawscreen:
|
||||
|
||||
bgli:
|
||||
|
||||
cmp ecx,1
|
||||
cmp dword[esp], 1
|
||||
jnz .az
|
||||
; cmp byte[BACKGROUND_CHANGED], 0
|
||||
; jnz newdw8
|
||||
|
Loading…
Reference in New Issue
Block a user