Alexandre Julliard : winex11: Force the client dimensions to at least 1x1 in sync_gl_drawable.

Alexandre Julliard julliard at winehq.org
Fri Feb 22 10:12:53 CST 2008


Module: wine
Branch: master
Commit: f13ef6b898cd79682a05cf8239fcfc886049e2e5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f13ef6b898cd79682a05cf8239fcfc886049e2e5

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Feb 22 16:30:10 2008 +0100

winex11: Force the client dimensions to at least 1x1 in sync_gl_drawable.

---

 dlls/winex11.drv/window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 4a41ba5..9939d7e 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -486,6 +486,9 @@ static void sync_gl_drawable(Display *display, struct x11drv_win_data *data)
     Drawable glxp;
     Pixmap pix;
 
+    if (w <= 0) w = 1;
+    if (h <= 0) h = 1;
+
     TRACE("Resizing GL drawable 0x%lx to %dx%d\n", data->gl_drawable, w, h);
 #ifdef SONAME_LIBXCOMPOSITE
     if(usexcomposite)




More information about the wine-cvs mailing list