From c2a771d3354d0c0d7f666acd976141ca4b464844 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Sat, 8 Dec 2007 19:46:57 +0000 Subject: [PATCH] restoring window after rolling up does not allow invalid window coordinates git-svn-id: svn://kolibrios.org@679 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/window.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel/trunk/gui/window.inc b/kernel/trunk/gui/window.inc index a6a4e0ff0b..4dbc61bbc3 100644 --- a/kernel/trunk/gui/window.inc +++ b/kernel/trunk/gui/window.inc @@ -1544,6 +1544,13 @@ checkwindows: mov eax,[screen_workarea.bottom] sub eax,[screen_workarea.top] @@: 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 no_window_shade: