Corrected border drawing code.

git-svn-id: svn://kolibrios.org@181 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2006-10-12 10:35:04 +00:00
parent 7c8ba5ff40
commit aacb4b7591

View File

@ -1645,13 +1645,27 @@ endg
; draw negative window frames ; draw negative window frames
uglobal
moving_wnd dd ?
moving_wnd_redrawed db ?
endg
drawwindowframes: drawwindowframes:
mov [moving_wnd], edi
test [edi+WDATA.fl_wstate],WSTATE_MAXIMIZED test [edi+WDATA.fl_wstate],WSTATE_MAXIMIZED
jnz .ret jnz .ret
cmp [edi+WDATA.fl_redraw], 0 cmp [edi+WDATA.fl_redraw], 0
jnz .ret jz @f
xor [moving_wnd_redrawed], 1
jmp .ret
@@:
cmp [moving_wnd_redrawed], 0
jz @f
mov [moving_wnd_redrawed], 0
.ret:
ret
@@:
pushad pushad
@ -1718,7 +1732,6 @@ drawwindowframes:
pop edi pop edi
popad popad
.ret:
ret ret