Commit ec0ceeff authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

If printer only supports level 1 PostScript then complain rather than

trying to use a pattern color space. Thanks to David Goodenough.
parent df8a69b3
......@@ -122,6 +122,7 @@ static BOOL PSDRV_Clip(DC *dc, BOOL EO)
BOOL PSDRV_Brush(DC *dc, BOOL EO)
{
BRUSHOBJ *brush = (BRUSHOBJ *)GDI_GetObjPtr( dc->w.hBrush, BRUSH_MAGIC );
PSDRV_PDEVICE *physDev = dc->physDev;
if(!brush) {
ERR("Can't get BRUSHOBJ\n");
......@@ -204,11 +205,15 @@ BOOL PSDRV_Brush(DC *dc, BOOL EO)
GetBitmapBits(brush->logbrush.lbHatch,
bm.bmWidthBytes * bm.bmHeight, bits);
if(physDev->pi->ppd->LanguageLevel > 1) {
PSDRV_WriteGSave(dc);
PSDRV_WritePatternDict(dc, &bm, bits);
HeapFree(PSDRV_Heap, 0, bits);
PSDRV_Fill(dc, EO);
PSDRV_WriteGRestore(dc);
} else {
FIXME("Trying to set a pattern brush on a level 1 printer\n");
}
HeapFree(PSDRV_Heap, 0, bits);
return TRUE;
}
break;
......
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