Commit 735657d1 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Keep track of changes to the brush rop, so that we can perform lazy…

gdi32: Keep track of changes to the brush rop, so that we can perform lazy realisation of the brush.
parent 0d0f2fa4
......@@ -958,6 +958,7 @@ static BOOL solid_brush(dibdrv_physdev *pdev, int num, RECT *rects)
void update_brush_rop( dibdrv_physdev *pdev, INT rop )
{
pdev->brush_rop = rop;
if(pdev->brush_style == BS_SOLID)
calc_and_xor_masks(rop, pdev->brush_color, &pdev->brush_and, &pdev->brush_xor);
}
......
......@@ -122,6 +122,7 @@ typedef struct dibdrv_physdev
/* brush */
UINT brush_style;
INT brush_rop; /* PatBlt, for example, can override the DC's rop2 */
DWORD brush_color, brush_and, brush_xor;
BOOL (* brush_rects)(struct dibdrv_physdev *pdev, int num, RECT *rects);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment