mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
bug #104576. Font sizes wrong when running under Xinerama. r=bstell,sr=tor
This commit is contained in:
parent
fa454e41c4
commit
d863273869
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user