Brian Pirie

Added support for PASSTHROUGH and POSTSCRIPT_PASSTHROUGH escapes.
This commit is contained in:
Alexandre Julliard 2000-10-19 20:33:02 +00:00
parent 0062892c66
commit 044f028f0e

View file

@ -79,6 +79,8 @@ INT PSDRV_Escape( DC *dc, INT nEscape, INT cbInput,
case SETCHARSET:
case EXT_DEVICE_CAPS:
case SET_BOUNDS:
case PASSTHROUGH:
case POSTSCRIPT_PASSTHROUGH:
return TRUE;
default:
@ -246,6 +248,17 @@ INT PSDRV_Escape( DC *dc, INT nEscape, INT cbInput,
return 0;
}
case PASSTHROUGH:
case POSTSCRIPT_PASSTHROUGH:
{
/* Write directly to spool file, bypassing normal PS driver
* processing that is done along with writing PostScript code
* to the spool.
*/
return WriteSpool16(physDev->job.hJob, ((char *)lpInData) + 2,
cbInput);
}
default:
FIXME("Unimplemented code 0x%x\n", nEscape);
return 0;