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);