Commit 6fdee15d authored by Alexandre Julliard's avatar Alexandre Julliard

wineps.drv: Return correct values for DESKTOPHORZ/VERTRES since they are used to…

wineps.drv: Return correct values for DESKTOPHORZ/VERTRES since they are used to setup the visible region.
parent c07da706
...@@ -426,8 +426,10 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap ) ...@@ -426,8 +426,10 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap )
return MulDiv(physDev->vertSize, 100, return MulDiv(physDev->vertSize, 100,
physDev->Devmode->dmPublic.dmScale); physDev->Devmode->dmPublic.dmScale);
case HORZRES: case HORZRES:
case DESKTOPHORZRES:
return physDev->horzRes; return physDev->horzRes;
case VERTRES: case VERTRES:
case DESKTOPVERTRES:
return physDev->vertRes; return physDev->vertRes;
case BITSPIXEL: case BITSPIXEL:
return (physDev->pi->ppd->ColorDevice != CD_False) ? 8 : 1; return (physDev->pi->ppd->ColorDevice != CD_False) ? 8 : 1;
...@@ -508,8 +510,6 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap ) ...@@ -508,8 +510,6 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap )
case SCALINGFACTORX: case SCALINGFACTORX:
case SCALINGFACTORY: case SCALINGFACTORY:
case VREFRESH: case VREFRESH:
case DESKTOPVERTRES:
case DESKTOPHORZRES:
case BLTALIGNMENT: case BLTALIGNMENT:
return 0; return 0;
default: default:
......
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