thickframes: resizing fix
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Tue Mar 2 10:39:45 CST 2004
Huw Davies <huw at codeweavers.com>
Enable resizing if WS_THICKFRAME is set.
--
Huw Davies
huw at codeweavers.com
Index: dlls/x11drv/window.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/window.c,v
retrieving revision 1.71
diff -u -r1.71 window.c
--- dlls/x11drv/window.c 20 Feb 2004 05:43:00 -0000 1.71
+++ dlls/x11drv/window.c 2 Mar 2004 16:30:42 -0000
@@ -49,10 +49,6 @@
extern Pixmap X11DRV_BITMAP_Pixmap( HBITMAP );
-#define HAS_DLGFRAME(style,exStyle) \
- (((exStyle) & WS_EX_DLGMODALFRAME) || \
- (((style) & WS_DLGFRAME) && !((style) & WS_THICKFRAME)))
-
/* X context to associate a hwnd to an X window */
XContext winContext = 0;
@@ -358,7 +354,7 @@
size_hints->y = data->whole_rect.top;
size_hints->flags = PWinGravity | PPosition;
- if (HAS_DLGFRAME( win->dwStyle, win->dwExStyle ))
+ if ( !(win->dwStyle & WS_THICKFRAME) )
{
size_hints->max_width = data->whole_rect.right - data->whole_rect.left;
size_hints->max_height = data->whole_rect.bottom - data->whole_rect.top;
More information about the wine-patches
mailing list