Skip to content

Commit

Permalink
Small fix for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ed95 committed Jul 7, 2020
1 parent f1a5f2e commit af968f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/juce_gui_basics/native/juce_win32_Windowing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,8 @@ class HWNDComponentPeer : public ComponentPeer,
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);
Expand Down

0 comments on commit af968f5

Please sign in to comment.