restoring window after rolling up does not allow invalid window coordinates

git-svn-id: svn://kolibrios.org@679 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2007-12-08 19:46:57 +00:00
parent 3ce0c6763b
commit c2a771d335

View File

@ -1544,6 +1544,13 @@ checkwindows:
mov eax,[screen_workarea.bottom] mov eax,[screen_workarea.bottom]
sub eax,[screen_workarea.top] sub eax,[screen_workarea.top]
@@: mov [edi+WDATA.box.height],eax @@: mov [edi+WDATA.box.height],eax
add eax, [edi+WDATA.box.top]
cmp eax, [ScreenHeight]
jbe @f
mov eax, [ScreenHeight]
sub eax, [edi+WDATA.box.height]
mov [edi+WDATA.box.top], eax
@@: call check_window_position
call set_window_clientbox call set_window_clientbox
no_window_shade: no_window_shade: