gdi32: Add support for the null brush.
This commit is contained in:
parent
8ae156dc31
commit
b025a74b40
|
@ -1062,6 +1062,11 @@ static BOOL pattern_brush(dibdrv_physdev *pdev, int num, RECT *rects)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static BOOL null_brush(dibdrv_physdev *pdev, int num, RECT *rects)
|
||||||
|
{
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
void update_brush_rop( dibdrv_physdev *pdev, INT rop )
|
void update_brush_rop( dibdrv_physdev *pdev, INT rop )
|
||||||
{
|
{
|
||||||
pdev->brush_rop = rop;
|
pdev->brush_rop = rop;
|
||||||
|
@ -1101,6 +1106,11 @@ HBRUSH CDECL dibdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush )
|
||||||
pdev->defer &= ~DEFER_BRUSH;
|
pdev->defer &= ~DEFER_BRUSH;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case BS_NULL:
|
||||||
|
pdev->brush_rects = null_brush;
|
||||||
|
pdev->defer &= ~DEFER_BRUSH;
|
||||||
|
break;
|
||||||
|
|
||||||
case BS_DIBPATTERN:
|
case BS_DIBPATTERN:
|
||||||
{
|
{
|
||||||
BITMAPINFOHEADER *bi = GlobalLock((HGLOBAL)logbrush.lbHatch);
|
BITMAPINFOHEADER *bi = GlobalLock((HGLOBAL)logbrush.lbHatch);
|
||||||
|
|
Loading…
Reference in New Issue