diff --git a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp index 7ae9196fe1..cda94b0ca4 100644 --- a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp @@ -1417,8 +1417,7 @@ public: if (auto parentH = GetParent (hwnd)) { auto r = getWindowRect (parentH); - auto localBounds = Rectangle::leftTopRightBottom (bounds.left, bounds.top, - bounds.right, bounds.bottom).translated (-r.left, -r.top); + auto localBounds = rectangleFromRECT (bounds).translated (-r.left, -r.top); #if JUCE_WIN_PER_MONITOR_DPI_AWARE if (isPerMonitorDPIAwareWindow (hwnd))