From e206bbecc4faace98b0eac3fc4789287aa0133d6 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 10 Jul 2019 16:16:44 +0100 Subject: [PATCH] Linux: Fix DPI factor in getScaleForDisplay() --- modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp b/modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp index b23d8bd366..00de9d6b89 100644 --- a/modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp @@ -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 =================================