do not maximize windows of unresizable styles (bug #17)

git-svn-id: svn://kolibrios.org@1526 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2010-07-25 21:57:38 +00:00
parent b227b900a4
commit ed3624b9f1

View File

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