winex11: Sync a dib section's bits before copying the brush.
This commit is contained in:
parent
39f14b68bf
commit
f15dcec52f
|
@ -216,6 +216,8 @@ static BOOL BRUSH_SelectPatternBrush( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
|
||||||
|
|
||||||
if (!physBitmap || !GetObjectW( hbitmap, sizeof(bitmap), &bitmap )) return FALSE;
|
if (!physBitmap || !GetObjectW( hbitmap, sizeof(bitmap), &bitmap )) return FALSE;
|
||||||
|
|
||||||
|
X11DRV_DIB_Lock( physBitmap, DIB_Status_GdiMod );
|
||||||
|
|
||||||
if ((physDev->depth == 1) && (physBitmap->pixmap_depth != 1))
|
if ((physDev->depth == 1) && (physBitmap->pixmap_depth != 1))
|
||||||
{
|
{
|
||||||
wine_tsx11_lock();
|
wine_tsx11_lock();
|
||||||
|
@ -233,6 +235,8 @@ static BOOL BRUSH_SelectPatternBrush( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
|
||||||
X11DRV_XRender_CopyBrush(physDev, physBitmap, bitmap.bmWidth, bitmap.bmHeight);
|
X11DRV_XRender_CopyBrush(physDev, physBitmap, bitmap.bmWidth, bitmap.bmHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
X11DRV_DIB_Unlock( physBitmap, TRUE );
|
||||||
|
|
||||||
if (physBitmap->pixmap_depth > 1)
|
if (physBitmap->pixmap_depth > 1)
|
||||||
{
|
{
|
||||||
physDev->brush.fillStyle = FillTiled;
|
physDev->brush.fillStyle = FillTiled;
|
||||||
|
|
Loading…
Reference in New Issue