From ed3624b9f1706c770f4574cba4bd5d98bafe6536 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Sun, 25 Jul 2010 21:57:38 +0000 Subject: [PATCH] do not maximize windows of unresizable styles (bug #17) git-svn-id: svn://kolibrios.org@1526 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/window.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/trunk/gui/window.inc b/kernel/trunk/gui/window.inc index 7194f2e8a5..3de6382587 100644 --- a/kernel/trunk/gui/window.inc +++ b/kernel/trunk/gui/window.inc @@ -1036,10 +1036,10 @@ sys_window_maximize_handler: ;///////////////////////////////////////////////// add edi, window_data ; can window change its height? + ; only types 2 and 3 can be resized mov dl, [edi + WDATA.fl_wstyle] - and dl, 0x0f - cmp dl, 0x04 - je .exit + test dl, 2 + jz .exit ; toggle normal/maximized window state mov bl, [edi + WDATA.fl_wstate]