Browse Source

Windows: Fixed a build error when JUCE_WIN_PER_MONITOR_DPI_AWARE=0

tags/2021-05-28
ed 7 years ago
parent
commit
b3a1d56eba
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_gui_basics/native/juce_win32_Windowing.cpp

+ 2
- 0
modules/juce_gui_basics/native/juce_win32_Windowing.cpp View File

@@ -1467,8 +1467,10 @@ public:
auto globalPos = localPos + getScreenPosition(); auto globalPos = localPos + getScreenPosition();
#if JUCE_WIN_PER_MONITOR_DPI_AWARE
if (isPerMonitorDPIAwareThread() || isPerMonitorDPIAwareWindow (hwnd)) if (isPerMonitorDPIAwareThread() || isPerMonitorDPIAwareWindow (hwnd))
globalPos = Desktop::getInstance().getDisplays().logicalToPhysical (globalPos); globalPos = Desktop::getInstance().getDisplays().logicalToPhysical (globalPos);
#endif
auto w = WindowFromPoint (POINTFromPoint (globalPos)); auto w = WindowFromPoint (POINTFromPoint (globalPos));


Loading…
Cancel
Save