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:
blizzard%redhat.com 2002-11-04 21:51:09 +00:00
parent 3fc9ec1f28
commit e277c5c567

View File

@ -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;