mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
New class Desktop::Displays, which now handles all display size information and replaces some methods that were in Desktop. Also now supports display scaling values. See Desktop::getDisplays().
This commit is contained in:
parent
10815d9e4d
commit
7d4bbd114a
15 changed files with 282 additions and 205 deletions
|
|
@ -144,7 +144,7 @@ void ComponentBoundsConstrainer::setBoundsForComponent (Component* const compone
|
|||
if (peer != nullptr)
|
||||
border = peer->getFrameSize();
|
||||
|
||||
limits = Desktop::getInstance().getMonitorAreaContaining (bounds.getCentre());
|
||||
limits = Desktop::getInstance().getDisplays().getDisplayContaining (bounds.getCentre()).userArea;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue