mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
r=jkobal, a=blizzard Fix for printer problem incorrect - backing out
This commit is contained in:
parent
1e3784fb46
commit
f45e789702
@ -181,7 +181,10 @@ void nsDeviceContextOS2 :: CommonInit(HDC aDC)
|
||||
|
||||
DevQueryCaps(aDC, CAPS_FAMILY, CAPS_DEVICE_POLYSET_POINTS, alArray);
|
||||
|
||||
mTwipsToPixels = (float)alArray [CAPS_VERTICAL_RESOLUTION] / (float)NS_METERS_TO_TWIPS (1);
|
||||
// This change breaks opening and closing of sidebar
|
||||
// mTwipsToPixels = (float)alArray [CAPS_VERTICAL_RESOLUTION] / (float)NS_METERS_TO_TWIPS (1);
|
||||
mTwipsToPixels = ((float)alArray[CAPS_VERTICAL_FONT_RES]) / (float)NSIntPointsToTwips(72);
|
||||
|
||||
mPixelsToTwips = 1.0f / mTwipsToPixels;
|
||||
|
||||
mDepth = alArray[CAPS_COLOR_BITCOUNT];
|
||||
|
Loading…
Reference in New Issue
Block a user