1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Linux: Fix DPI factor in getScaleForDisplay()

This commit is contained in:
ed 2019-07-10 16:16:44 +01:00
parent 74f52b6a15
commit e206bbecc4

View file

@ -966,7 +966,7 @@ static double getScaleForDisplay (const String& name, double dpi)
// If no scale factor is set by GNOME or Ubuntu then calculate from monitor dpi
// We use the same approach as chromium which simply divides the dpi by 96
// and then rounds the result
return round (dpi / 150.0);
return round (dpi / 96.0);
}
//=============================== X11 - Pixmap =================================