From 6325230f61811e56bfdac35825de9289578af288 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 4 Jan 2021 18:31:54 +0000 Subject: [PATCH] Windows: Use rectangleFromRECT() to clean up some code --- modules/juce_gui_basics/native/juce_win32_Windowing.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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))