2 * PostScript brush handling
4 * Copyright 1998 Huw D M Davies
14 /***********************************************************************
15 * PSDRV_BRUSH_SelectObject
17 HBRUSH32
PSDRV_BRUSH_SelectObject( DC
* dc
, HBRUSH32 hbrush
, BRUSHOBJ
* brush
)
19 HBRUSH32 prevbrush
= dc
->w
.hBrush
;
20 PSDRV_PDEVICE
*physDev
= (PSDRV_PDEVICE
*)dc
->physDev
;
22 TRACE(psdrv
, "hbrush = %08x\n", hbrush
);
23 dc
->w
.hBrush
= hbrush
;
25 switch(brush
->logbrush
.lbStyle
) {
28 physDev
->brush
.style
= BS_SOLID
;
29 PSDRV_CreateColor(physDev
, &physDev
->brush
.color
,
30 brush
->logbrush
.lbColor
);
34 physDev
->brush
.style
= BS_NULL
;
39 FIXME(psdrv
, "Unsupported brush style %d\n", brush
->logbrush
.lbStyle
);
43 FIXME(psdrv
, "Unrecognized brush style %d\n", brush
->logbrush
.lbStyle
);
47 physDev
->brush
.set
= FALSE
;
52 /**********************************************************************
57 BOOL32
PSDRV_SetBrush(DC
*dc
)
59 PSDRV_PDEVICE
*physDev
= (PSDRV_PDEVICE
*)dc
->physDev
;
61 switch (physDev
->brush
.style
) {
63 PSDRV_WriteSetColor(dc
, &physDev
->brush
.color
);
71 physDev
->brush
.set
= TRUE
;