1
0
Fork 0
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:
ed 2020-10-27 11:44:19 +00:00
parent c21241549b
commit b7e28541ca
30 changed files with 51 additions and 51 deletions

View file

@ -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()));