1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Windows: Use rectangleFromRECT() to clean up some code

This commit is contained in:
ed 2021-01-04 18:31:54 +00:00
parent 09c25fedfd
commit 6325230f61

View file

@ -1417,8 +1417,7 @@ public:
if (auto parentH = GetParent (hwnd))
{
auto r = getWindowRect (parentH);
auto localBounds = Rectangle<int>::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))