1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Small fix for previous commit

This commit is contained in:
ed 2020-07-07 08:41:09 +01:00
parent f1a5f2ef1e
commit af968f5d78

View file

@ -1788,7 +1788,8 @@ public:
if (isPerMonitorDPIAwareWindow (h))
screenPos = convertPhysicalScreenPointToLogical (screenPos.roundToInt(), h).toFloat();
#else
screenPos /= static_cast<float> (getGlobalDPI() / USER_DEFAULT_SCREEN_DPI);
if (JUCEApplication::isStandaloneApp())
screenPos /= static_cast<float> (getGlobalDPI() / USER_DEFAULT_SCREEN_DPI);
#endif
return peer.getComponent().getLocalPoint (nullptr, screenPos);