Make sure we update dc->bitsPerPixel.
diff --git a/dlls/wineps/init.c b/dlls/wineps/init.c
index d981900..a317623 100644
--- a/dlls/wineps/init.c
+++ b/dlls/wineps/init.c
@@ -312,6 +312,8 @@
PSDRV_UpdateDevCaps(physDev);
dc->hFont = PSDRV_DefaultFont;
+ if (GetObjectType(dc->hSelf) != OBJ_MEMDC)
+ dc->bitsPerPixel = physDev->pi->ppd->ColorDevice ? 8 : 1;
return TRUE;
}
@@ -367,7 +369,7 @@
case VERTRES:
return physDev->vertRes;
case BITSPIXEL:
- return (physDev->pi->ppd->ColorDevice ? 8 : 1);
+ return physDev->pi->ppd->ColorDevice ? 8 : 1;
case PLANES:
return 1;
case NUMBRUSHES: