wineps.drv: Return correct values for DESKTOPHORZ/VERTRES since they are used to setup the visible region.

This commit is contained in:
Alexandre Julliard 2007-03-06 18:28:17 +01:00
parent c07da7067d
commit 6fdee15df9

View File

@ -426,8 +426,10 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap )
return MulDiv(physDev->vertSize, 100,
physDev->Devmode->dmPublic.dmScale);
case HORZRES:
case DESKTOPHORZRES:
return physDev->horzRes;
case VERTRES:
case DESKTOPVERTRES:
return physDev->vertRes;
case BITSPIXEL:
return (physDev->pi->ppd->ColorDevice != CD_False) ? 8 : 1;
@ -508,8 +510,6 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap )
case SCALINGFACTORX:
case SCALINGFACTORY:
case VREFRESH:
case DESKTOPVERTRES:
case DESKTOPHORZRES:
case BLTALIGNMENT:
return 0;
default: