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:
parent
f1a5f2ef1e
commit
af968f5d78
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue