зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
1e9a50c7f3
Коммит
af94b565a6
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче