Bug #178045. floating point error when using gtk2 on startup. Make sure to check if the gtk dpi is greater than zero. r=owen sr=scc a=jesup

This commit is contained in:
blizzard%redhat.com 2002-11-04 21:32:36 +00:00
Родитель 1e9a50c7f3
Коммит af94b565a6
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1030,8 +1030,8 @@ GetOSDPI(void)
NULL);
}
if (dpi)
return NSToCoordRound(dpi / PANGO_SCALE);
if (dpi > 0)
return NSToCoordRound(dpi / 1024.0);
// try to get it from xft
PRInt32 xftdpi = GetXftDPI();