winex11.drv: Pass root_window to XCreatePixmap to avoid BadDrawable errors.
This commit is contained in:
parent
39a5638268
commit
ee40cb4b9f
|
@ -1207,7 +1207,7 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag
|
||||||
XRenderPictFormat *format = (physDev->depth == 1) ? mono_format : screen_format;
|
XRenderPictFormat *format = (physDev->depth == 1) ? mono_format : screen_format;
|
||||||
wine_tsx11_lock();
|
wine_tsx11_lock();
|
||||||
physDev->xrender->tile_xpm = XCreatePixmap(gdi_display,
|
physDev->xrender->tile_xpm = XCreatePixmap(gdi_display,
|
||||||
physDev->drawable,
|
root_window,
|
||||||
1, 1,
|
1, 1,
|
||||||
format->depth);
|
format->depth);
|
||||||
pa.repeat = True;
|
pa.repeat = True;
|
||||||
|
@ -1425,7 +1425,7 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag
|
||||||
image_w, image_h, AllPlanes, ZPixmap,
|
image_w, image_h, AllPlanes, ZPixmap,
|
||||||
physDev->depth, image);
|
physDev->depth, image);
|
||||||
if(!image) {
|
if(!image) {
|
||||||
Pixmap xpm = XCreatePixmap(gdi_display, physDev->drawable, image_w, image_h,
|
Pixmap xpm = XCreatePixmap(gdi_display, root_window, image_w, image_h,
|
||||||
physDev->depth);
|
physDev->depth);
|
||||||
GC gc;
|
GC gc;
|
||||||
XGCValues gcv;
|
XGCValues gcv;
|
||||||
|
@ -1622,7 +1622,7 @@ BOOL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT widthDst,
|
||||||
TRACE("dst_pict %08lx\n", dst_pict);
|
TRACE("dst_pict %08lx\n", dst_pict);
|
||||||
TRACE("src_drawable = %08lx\n", devSrc->drawable);
|
TRACE("src_drawable = %08lx\n", devSrc->drawable);
|
||||||
xpm = XCreatePixmap(gdi_display,
|
xpm = XCreatePixmap(gdi_display,
|
||||||
devSrc->drawable,
|
root_window,
|
||||||
widthSrc, heightSrc, 32);
|
widthSrc, heightSrc, 32);
|
||||||
gcv.graphics_exposures = False;
|
gcv.graphics_exposures = False;
|
||||||
gc = XCreateGC(gdi_display, xpm, GCGraphicsExposures, &gcv);
|
gc = XCreateGC(gdi_display, xpm, GCGraphicsExposures, &gcv);
|
||||||
|
|
Loading…
Reference in New Issue