Bug 531289: Firefox doesn't obey system dpi settings anymore (better fix) [r=dbaron a=blocking]

This commit is contained in:
Mark Finkle 2009-11-30 18:10:11 -05:00
parent b0cfce1c97
commit a192286ef4

View File

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