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:
parent
74f52b6a15
commit
e206bbecc4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue