mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
VST: Made the check for Windows high-DPI screen change resizing more strict to prevent UI glitches when resizing manually
This commit is contained in:
parent
2018ceca3b
commit
5fc20f7106
2 changed files with 2 additions and 2 deletions
|
|
@ -1141,7 +1141,7 @@ public:
|
|||
auto newBounds = getLocalBounds();
|
||||
|
||||
#if JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE
|
||||
if (! lastBounds.isEmpty() && isWithin (newBounds.toDouble().getAspectRatio(), lastBounds.toDouble().getAspectRatio(), 0.1))
|
||||
if (! lastBounds.isEmpty() && isWithin (newBounds.toDouble().getAspectRatio(), lastBounds.toDouble().getAspectRatio(), 0.001))
|
||||
return;
|
||||
|
||||
lastBounds = newBounds;
|
||||
|
|
|
|||
|
|
@ -1576,7 +1576,7 @@ private:
|
|||
auto newBounds = getLocalBounds();
|
||||
|
||||
#if JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE
|
||||
if (! lastBounds.isEmpty() && isWithin (newBounds.toDouble().getAspectRatio(), lastBounds.toDouble().getAspectRatio(), 0.1))
|
||||
if (! lastBounds.isEmpty() && isWithin (newBounds.toDouble().getAspectRatio(), lastBounds.toDouble().getAspectRatio(), 0.001))
|
||||
return;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue