bug #104576. Font sizes wrong when running under Xinerama. r=bstell,sr=tor

This commit is contained in:
blizzard%redhat.com 2001-11-16 03:18:18 +00:00
parent fa454e41c4
commit d863273869

View File

@ -558,7 +558,7 @@ nsDeviceContextGTK::SetDPI(PRInt32 aPrefDPI)
{
// Set OSVal to what the operating system thinks the logical resolution is.
float screenWidthIn = float(::gdk_screen_width_mm()) / 25.4f;
PRInt32 OSVal = nscoord(mWidthFloat / screenWidthIn);
PRInt32 OSVal = NSToCoordRound(float(::gdk_screen_width()) / screenWidthIn);
if (aPrefDPI > 0) {
// If there's a valid pref value for the logical resolution,