gdi32: Add support for the null brush.

This commit is contained in:
Huw Davies 2011-05-12 14:11:56 +01:00 committed by Alexandre Julliard
parent 8ae156dc31
commit b025a74b40
1 changed files with 10 additions and 0 deletions

View File

@ -1062,6 +1062,11 @@ static BOOL pattern_brush(dibdrv_physdev *pdev, int num, RECT *rects)
return TRUE;
}
static BOOL null_brush(dibdrv_physdev *pdev, int num, RECT *rects)
{
return TRUE;
}
void update_brush_rop( dibdrv_physdev *pdev, INT rop )
{
pdev->brush_rop = rop;
@ -1101,6 +1106,11 @@ HBRUSH CDECL dibdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush )
pdev->defer &= ~DEFER_BRUSH;
break;
case BS_NULL:
pdev->brush_rects = null_brush;
pdev->defer &= ~DEFER_BRUSH;
break;
case BS_DIBPATTERN:
{
BITMAPINFOHEADER *bi = GlobalLock((HGLOBAL)logbrush.lbHatch);