winex11: Sync a dib section's bits before copying the brush.

This commit is contained in:
Huw Davies 2011-08-19 16:23:56 +01:00 committed by Alexandre Julliard
parent 39f14b68bf
commit f15dcec52f
1 changed files with 4 additions and 0 deletions

View File

@ -216,6 +216,8 @@ static BOOL BRUSH_SelectPatternBrush( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
if (!physBitmap || !GetObjectW( hbitmap, sizeof(bitmap), &bitmap )) return FALSE;
X11DRV_DIB_Lock( physBitmap, DIB_Status_GdiMod );
if ((physDev->depth == 1) && (physBitmap->pixmap_depth != 1))
{
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_DIB_Unlock( physBitmap, TRUE );
if (physBitmap->pixmap_depth > 1)
{
physDev->brush.fillStyle = FillTiled;