2 * PostScript driver BitBlt, StretchBlt and PatBlt
4 * Copyright 1999 Huw D M Davies
10 #include "debugtools.h"
13 DEFAULT_DEBUG_CHANNEL(psdrv
)
16 /***********************************************************************
20 BOOL
PSDRV_PatBlt(DC
*dc
, INT x
, INT y
, INT width
, INT height
, DWORD dwRop
)
22 PSDRV_PDEVICE
*physDev
= (PSDRV_PDEVICE
*)dc
->physDev
;
26 PSDRV_WriteRectangle(dc
, XLPTODP(dc
, x
), YLPTODP(dc
, y
),
27 XLSTODS(dc
, width
), YLSTODS(dc
, height
));
28 PSDRV_Brush(dc
, FALSE
);
29 PSDRV_WriteGRestore(dc
);
38 PSDRV_WriteRectangle(dc
, XLPTODP(dc
, x
), YLPTODP(dc
, y
),
39 XLSTODS(dc
, width
), YLSTODS(dc
, height
));
40 PSDRV_CreateColor( physDev
, &pscol
, (dwRop
== BLACKNESS
) ?
41 RGB(0,0,0) : RGB(0xff,0xff,0xff) );
42 PSDRV_WriteSetColor(dc
, &pscol
);
44 PSDRV_WriteGRestore(dc
);
48 FIXME("Unsupported rop %ld\n", dwRop
);