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.
This commit is contained in:
parent
1f2590be9b
commit
5b29189da4
|
@ -2166,7 +2166,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE
|
|||
}
|
||||
|
||||
/* mono -> color */
|
||||
if(physDevSrc->depth == 1)
|
||||
if(physDevSrc->depth == 1 && physDevDst->depth > 1)
|
||||
{
|
||||
XRenderColor col;
|
||||
get_xrender_color(dst_format, physDevDst->textPixel, &col);
|
||||
|
@ -2189,7 +2189,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE
|
|||
wine_tsx11_unlock();
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue