diff --git a/graphics/psdrv/color.c b/graphics/psdrv/color.c index 91a3f5a14ed..f0052fcdff5 100644 --- a/graphics/psdrv/color.c +++ b/graphics/psdrv/color.c @@ -80,7 +80,7 @@ void PSDRV_CreateColor( PSDRV_PDEVICE *physDev, PSCOLOR *pscolor, int ctype = wincolor >> 24; float r, g, b; - if(ctype != 0) + if(ctype != 0 && ctype != 2) FIXME("Colour is %08lx\n", wincolor); r = (wincolor & 0xff) / 256.0; diff --git a/graphics/psdrv/init.c b/graphics/psdrv/init.c index cf6bf28c47e..f7501993e65 100644 --- a/graphics/psdrv/init.c +++ b/graphics/psdrv/init.c @@ -13,6 +13,7 @@ #include "winreg.h" #include "winspool.h" #include "winerror.h" +#include "options.h" DEFAULT_DEBUG_CHANNEL(psdrv) @@ -297,8 +298,9 @@ static BOOL PSDRV_CreateDC( DC *dc, LPCSTR driver, LPCSTR device, dc->w.devCaps->vertRes); dc->w.hFont = PSDRV_DefaultFont; - physDev->job.output = output ? HEAP_strdupA( PSDRV_Heap, 0, output ) : - NULL; + physDev->job.output = output ? + HEAP_strdupA( PSDRV_Heap, 0, output ) : + HEAP_strdupA( PSDRV_Heap, 0, "LPT1:" ); /* HACK */ physDev->job.hJob = 0; return TRUE; } diff --git a/graphics/psdrv/ps.c b/graphics/psdrv/ps.c index 01394d4f20a..33b8e9cbcbd 100644 --- a/graphics/psdrv/ps.c +++ b/graphics/psdrv/ps.c @@ -319,7 +319,7 @@ INT PSDRV_WriteHeader( DC *dc, char *title, int len ) /* FIXME should do something better with BBox */ - sprintf(buf, psheader, title, 0, 0, urx, ury, orient); + sprintf(buf, psheader, titlebuf, 0, 0, urx, ury, orient); if( WriteSpool16( physDev->job.hJob, buf, strlen(buf) ) != strlen(buf) ) {