Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,8 @@ float DexedAudioProcessorEditor::getLargestScaleFactor() {

// validate if there is really a display that can show the complete plugin size
for (auto& display : Desktop::getInstance().getDisplays().displays) {
float ratio = display.scale;
int height = ratio * display.userArea.getHeight();
int width = ratio * display.userArea.getWidth();
const int height = display.userArea.getHeight();
const int width = display.userArea.getWidth();

TRACE("Testing size %d x %d < Dexed Window %d x %d", height, width, rect.getWidth(), rect.getHeight() );
if ( height > rect.getHeight() && width > rect.getWidth() ) {
Expand Down Expand Up @@ -583,4 +582,4 @@ bool DexedAudioProcessorEditor::keyPressed(const KeyPress& key, Component* origi
}

return false;
}
}