Commit 7c684cc8 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

wineps: Return 32 even for monochrome printers.

Returning 1 led to CreateCompatibleBitmap producing 1 bpp bitmaps, which is not correct.
parent b4daf7a7
......@@ -503,7 +503,9 @@ static INT PSDRV_GetDeviceCaps( PHYSDEV dev, INT cap )
case DESKTOPVERTRES:
return physDev->vertRes;
case BITSPIXEL:
return (physDev->pi->ppd->ColorDevice != CD_False) ? 32 : 1;
/* Although Windows returns 1 for monochrome printers, we want
CreateCompatibleBitmap to provide something other than 1 bpp */
return 32;
case PLANES:
return 1;
case NUMBRUSHES:
......
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