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

This commit is contained in:
Alexandre Julliard 2008-02-22 16:30:10 +01:00
parent 40953c2ada
commit f13ef6b898
1 changed files with 3 additions and 0 deletions

View File

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