Module: wine Branch: master Commit: 8a808a49f9c1ebbe42faf8c74a016879c82be8bf URL: http://source.winehq.org/git/wine.git/?a=commit;h=8a808a49f9c1ebbe42faf8c74a...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Oct 28 23:11:04 2011 +0200
wineps: Make color devices report 32 bits per pixel.
---
dlls/wineps.drv/init.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wineps.drv/init.c b/dlls/wineps.drv/init.c index d667436..5235998 100644 --- a/dlls/wineps.drv/init.c +++ b/dlls/wineps.drv/init.c @@ -452,7 +452,7 @@ static INT PSDRV_GetDeviceCaps( PHYSDEV dev, INT cap ) case DESKTOPVERTRES: return physDev->vertRes; case BITSPIXEL: - return (physDev->pi->ppd->ColorDevice != CD_False) ? 8 : 1; + return (physDev->pi->ppd->ColorDevice != CD_False) ? 32 : 1; case PLANES: return 1; case NUMBRUSHES: @@ -464,7 +464,7 @@ static INT PSDRV_GetDeviceCaps( PHYSDEV dev, INT cap ) case NUMFONTS: return 39; case NUMCOLORS: - return (physDev->pi->ppd->ColorDevice != CD_False) ? 256 : -1; + return -1; case PDEVICESIZE: return sizeof(PSDRV_PDEVICE); case CURVECAPS: