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:
Evgeny Grechnikov (Diamond) 2010-05-30 18:19:10 +00:00
parent c59969f41c
commit c5397f9cf2
2 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -3226,7 +3226,7 @@ redrawscreen:
bgli:
cmp ecx,1
cmp dword[esp], 1
jnz .az
; cmp byte[BACKGROUND_CHANGED], 0
; jnz newdw8