Lei Zhang : user32: Clamp newly created windows to the minimum window size.

Alexandre Julliard julliard at winehq.org
Thu Sep 25 10:30:07 CDT 2008


Module: wine
Branch: stable
Commit: 9906ed18cb264a37b35b8a016155881b825a81e5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9906ed18cb264a37b35b8a016155881b825a81e5

Author: Lei Zhang <thestig at google.com>
Date:   Mon Jul 14 16:51:15 2008 -0700

user32: Clamp newly created windows to the minimum window size.
(cherry picked from commit b3f4091b47e70681a9909bfccd19dee95657fabd)

---

 dlls/user32/win.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 1824a52..11adcec 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -1114,6 +1114,8 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, LPCWSTR className, UINT flags
         WINPOS_GetMinMaxInfo( hwnd, &maxSize, &maxPos, &minTrack, &maxTrack);
         if (maxTrack.x < cx) cx = maxTrack.x;
         if (maxTrack.y < cy) cy = maxTrack.y;
+        if (minTrack.x > cx) cx = minTrack.x;
+        if (minTrack.y > cy) cy = minTrack.y;
     }
 
     if (cx < 0) cx = 0;




More information about the wine-cvs mailing list