Module: wine
Branch: master
Commit: 6fdee15df9ba7cda179c754ed21acc38a96ceebe
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6fdee15df9ba7cda179c754ed…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Tue Mar 6 18:28:17 2007 +0100
wineps.drv: Return correct values for DESKTOPHORZ/VERTRES since they are used to setup the visible region.
---
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 bd9c16c..23b6cfd 100644
--- a/dlls/wineps.drv/init.c
+++ b/dlls/wineps.drv/init.c
@@ -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: