Bug 394103 - "All elements are HUGE (when doing dpi autodetect?)" (scale for 192+ dpi) [p=asac@jwsdot.com (Alexander Sack) r+sr=roc a1.9=schrep]

This commit is contained in:
reed@reedloden.com 2008-04-01 01:41:21 -07:00
Родитель cec06f5ac5
Коммит 4f3f6ba182
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -238,8 +238,7 @@ nsThebesDeviceContext::SetDPI()
// to get the number of app units per dev pixel. The PR_MAXes are to
// make sure we don't end up dividing by zero.
mAppUnitsPerDevNotScaledPixel = PR_MAX(1, AppUnitsPerCSSPixel() /
PR_MAX(1, (dpi + 48) / 96));
PR_MAX(1, dpi / 96));
} else {
/* set mAppUnitsPerDevPixel so we're using exactly 72 dpi, even
* though that means we have a non-integer number of device "pixels"