mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Replaced deprecated Displays methods
This commit is contained in:
parent
c21241549b
commit
b7e28541ca
30 changed files with 51 additions and 51 deletions
|
|
@ -564,7 +564,7 @@ bool ResizableWindow::restoreWindowStateFromString (const String& s)
|
|||
|
||||
if (onScreenArea.getWidth() * onScreenArea.getHeight() < 32 * 32)
|
||||
{
|
||||
auto screen = desktop.getDisplays().findDisplayForRect (newPos).userArea;
|
||||
auto screen = desktop.getDisplays().getDisplayForRect (newPos)->userArea;
|
||||
|
||||
newPos.setSize (jmin (newPos.getWidth(), screen.getWidth()),
|
||||
jmin (newPos.getHeight(), screen.getHeight()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue