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