From 9338d3341a45fd75eaeea8bf48863b0458918201 Mon Sep 17 00:00:00 2001 From: "peterl%netscape.com" Date: Thu, 17 Sep 1998 00:15:22 +0000 Subject: [PATCH] change scaling to be based on y pixel size --- gfx/src/windows/nsDeviceContextWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/src/windows/nsDeviceContextWin.cpp b/gfx/src/windows/nsDeviceContextWin.cpp index 1af54808e475..d589f7ffbf12 100644 --- a/gfx/src/windows/nsDeviceContextWin.cpp +++ b/gfx/src/windows/nsDeviceContextWin.cpp @@ -28,7 +28,7 @@ nsDeviceContextWin :: nsDeviceContextWin() { HDC hdc = ::GetDC(NULL); - mTwipsToPixels = ((float)::GetDeviceCaps(hdc, LOGPIXELSX)) / (float)NSIntPointsToTwips(72); // XXX shouldn't be LOGPIXELSY ?? + mTwipsToPixels = ((float)::GetDeviceCaps(hdc, LOGPIXELSY)) / (float)NSIntPointsToTwips(72); mPixelsToTwips = 1.0f / mTwipsToPixels; ::ReleaseDC(NULL, hdc);