forked from Mirrors/wine-wine
winex11: Force the client dimensions to at least 1x1 in sync_gl_drawable.
parent
40953c2ada
commit
f13ef6b898
|
@ -486,6 +486,9 @@ static void sync_gl_drawable(Display *display, struct x11drv_win_data *data)
|
||||||
Drawable glxp;
|
Drawable glxp;
|
||||||
Pixmap pix;
|
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);
|
TRACE("Resizing GL drawable 0x%lx to %dx%d\n", data->gl_drawable, w, h);
|
||||||
#ifdef SONAME_LIBXCOMPOSITE
|
#ifdef SONAME_LIBXCOMPOSITE
|
||||||
if(usexcomposite)
|
if(usexcomposite)
|
||||||
|
|
Loading…
Reference in New Issue