Make sure we update dc->bitsPerPixel.
This commit is contained in:
parent
280528a07e
commit
a3c10cf1e0
|
@ -312,6 +312,8 @@ BOOL PSDRV_CreateDC( DC *dc, PSDRV_PDEVICE **pdev, LPCSTR driver, LPCSTR device,
|
||||||
|
|
||||||
PSDRV_UpdateDevCaps(physDev);
|
PSDRV_UpdateDevCaps(physDev);
|
||||||
dc->hFont = PSDRV_DefaultFont;
|
dc->hFont = PSDRV_DefaultFont;
|
||||||
|
if (GetObjectType(dc->hSelf) != OBJ_MEMDC)
|
||||||
|
dc->bitsPerPixel = physDev->pi->ppd->ColorDevice ? 8 : 1;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -367,7 +369,7 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap )
|
||||||
case VERTRES:
|
case VERTRES:
|
||||||
return physDev->vertRes;
|
return physDev->vertRes;
|
||||||
case BITSPIXEL:
|
case BITSPIXEL:
|
||||||
return (physDev->pi->ppd->ColorDevice ? 8 : 1);
|
return physDev->pi->ppd->ColorDevice ? 8 : 1;
|
||||||
case PLANES:
|
case PLANES:
|
||||||
return 1;
|
return 1;
|
||||||
case NUMBRUSHES:
|
case NUMBRUSHES:
|
||||||
|
|
Loading…
Reference in New Issue