From d8632738693f128403c896cb4c2fa838cfc4a0f7 Mon Sep 17 00:00:00 2001 From: "blizzard%redhat.com" Date: Fri, 16 Nov 2001 03:18:18 +0000 Subject: [PATCH] bug #104576. Font sizes wrong when running under Xinerama. r=bstell,sr=tor --- gfx/src/gtk/nsDeviceContextGTK.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/src/gtk/nsDeviceContextGTK.cpp b/gfx/src/gtk/nsDeviceContextGTK.cpp index 908e9d9014db..17c32ca4f936 100644 --- a/gfx/src/gtk/nsDeviceContextGTK.cpp +++ b/gfx/src/gtk/nsDeviceContextGTK.cpp @@ -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,