Fix stupid `rubbish at end of %%Title' bug.
Don't complain about palette relative RGBs. If output param to CreateDC is NULL default to `LPT1:' - Hack.
This commit is contained in:
parent
5d68f79a8b
commit
91547cbf6a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) ) {
|
||||
|
|
Loading…
Reference in New Issue