From af968f5d786760d807032dd6c1d4c0db1319f46a Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 7 Jul 2020 08:41:09 +0100 Subject: [PATCH] Small fix for previous commit --- modules/juce_gui_basics/native/juce_win32_Windowing.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp index aa6c1753ac..2d4417b6c3 100644 --- a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp @@ -1788,7 +1788,8 @@ public: if (isPerMonitorDPIAwareWindow (h)) screenPos = convertPhysicalScreenPointToLogical (screenPos.roundToInt(), h).toFloat(); #else - screenPos /= static_cast (getGlobalDPI() / USER_DEFAULT_SCREEN_DPI); + if (JUCEApplication::isStandaloneApp()) + screenPos /= static_cast (getGlobalDPI() / USER_DEFAULT_SCREEN_DPI); #endif return peer.getComponent().getLocalPoint (nullptr, screenPos);