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);