mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug #178067. gtk2 FE requires xft enabled to compile. Patch from cbiesinger@web.de. r=blizzard, sr=bzbarsky, a=jesup
This commit is contained in:
parent
3fc9ec1f28
commit
e277c5c567
@ -1033,11 +1033,13 @@ GetOSDPI(void)
|
||||
if (dpi > 0)
|
||||
return NSToCoordRound(dpi / 1024.0);
|
||||
|
||||
#ifdef MOZ_ENABLE_XFT
|
||||
// try to get it from xft
|
||||
PRInt32 xftdpi = GetXftDPI();
|
||||
|
||||
if (xftdpi)
|
||||
return xftdpi;
|
||||
#endif /* MOZ_ENABLE_XFT */
|
||||
|
||||
// fall back to the physical resolution
|
||||
float screenWidthIn = float(::gdk_screen_width_mm()) / 25.4f;
|
||||
|
Loading…
Reference in New Issue
Block a user