Skip to content

Commit

Permalink
fix bitrate viewer opens too big on high DPI displays
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Dec 8, 2023
1 parent 72efc14 commit c3707fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dialogs/bitratedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ BitrateDialog::BitrateDialog(const QString &resource, double fps, const QJsonArr
SaveImageDialog(this, tr("Save Bitrate Graph"), image).exec();
});
connect(buttons, &QDialogButtonBox::rejected, this, &QDialog::reject);
chartView->setMinimumWidth(qMax(1010, periodCount * 5) * devicePixelRatio());
chartView->setMinimumHeight(530 * devicePixelRatio());
resize(1024 * devicePixelRatioF(), 576 * devicePixelRatio());
chartView->setMinimumWidth(qMax(1010, periodCount * 5));
chartView->setMinimumHeight(530);
resize(1024, 576);
show();
}

0 comments on commit c3707fb

Please sign in to comment.