Commit 5b29189d authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Alexandre Julliard

winex11: Fix xrender mono->mono blit.

Use plain xrender_blit for mono -> mono copies, masking in combination with PictOpOver doesn't make sense and doesn't work.
parent 1f2590be
...@@ -2166,7 +2166,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE ...@@ -2166,7 +2166,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE
} }
/* mono -> color */ /* mono -> color */
if(physDevSrc->depth == 1) if(physDevSrc->depth == 1 && physDevDst->depth > 1)
{ {
XRenderColor col; XRenderColor col;
get_xrender_color(dst_format, physDevDst->textPixel, &col); get_xrender_color(dst_format, physDevDst->textPixel, &col);
...@@ -2189,7 +2189,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE ...@@ -2189,7 +2189,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE
wine_tsx11_unlock(); wine_tsx11_unlock();
LeaveCriticalSection( &xrender_cs ); LeaveCriticalSection( &xrender_cs );
} }
else /* color -> color but with different depths */ else /* color -> color (can be at different depths) or mono -> mono */
{ {
src_pict = get_xrender_picture_source(physDevSrc); src_pict = get_xrender_picture_source(physDevSrc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment