mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 531289: Firefox doesn't obey system dpi settings anymore (better fix) [r=dbaron a=blocking]
This commit is contained in:
parent
b0cfce1c97
commit
a192286ef4
@ -675,7 +675,13 @@ nsThebesDeviceContext::SetDPI()
|
||||
}
|
||||
}
|
||||
|
||||
dpi = gfxPlatform::GetDPI();
|
||||
dpi = gfxPlatform::GetDPI();
|
||||
|
||||
#ifdef MOZ_ENABLE_GTK2
|
||||
if (prefDPI < 0) // Clamp the minimum dpi to 96dpi
|
||||
dpi = PR_MAX(dpi, 96);
|
||||
#endif
|
||||
|
||||
if (prefDPI > 0 && !mPrintingSurface)
|
||||
dpi = prefDPI;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user