Browse Source

Linux: Fix DPI factor in getScaleForDisplay()

tags/2021-05-28
ed 6 years ago
parent
commit
e206bbecc4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp

+ 1
- 1
modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp 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 =================================


Loading…
Cancel
Save