From 7a6ea91913d78df3edb8c8930cdd395b4cd5a044 Mon Sep 17 00:00:00 2001 From: Huw D M Davies Date: Mon, 24 Jun 2002 23:41:55 +0000 Subject: [PATCH] Handle dmScale. --- dlls/wineps/init.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dlls/wineps/init.c b/dlls/wineps/init.c index e28be99f52d..56ebcb9927f 100644 --- a/dlls/wineps/init.c +++ b/dlls/wineps/init.c @@ -318,7 +318,6 @@ HDC PSDRV_ResetDC( PSDRV_PDEVICE *physDev, const DEVMODEA *lpInitData ) return physDev->hdc; } - /*********************************************************************** * GetDeviceCaps (WINEPS.@) */ @@ -331,9 +330,11 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap ) case TECHNOLOGY: return DT_RASPRINTER; case HORZSIZE: - return physDev->horzSize; + return MulDiv(physDev->horzSize, 100, + physDev->Devmode->dmPublic.dmScale); case VERTSIZE: - return physDev->vertSize; + return MulDiv(physDev->vertSize, 100, + physDev->Devmode->dmPublic.dmScale); case HORZRES: return physDev->horzRes; case VERTRES: @@ -379,9 +380,11 @@ INT PSDRV_GetDeviceCaps( PSDRV_PDEVICE *physDev, INT cap ) return (int)hypot( (double)physDev->pi->ppd->DefaultResolution, (double)physDev->pi->ppd->DefaultResolution ); case LOGPIXELSX: - return physDev->logPixelsX; + return MulDiv(physDev->logPixelsX, + physDev->Devmode->dmPublic.dmScale, 100); case LOGPIXELSY: - return physDev->logPixelsY; + return MulDiv(physDev->logPixelsY, + physDev->Devmode->dmPublic.dmScale, 100); case SIZEPALETTE: return 0; case NUMRESERVED: