qt: Don't resize renderer screen beyond window size

This commit is contained in:
Cacodemon345
2022-12-19 22:52:17 +06:00
committed by GitHub
parent 2bd648901f
commit 6ce4f2de03

View File

@@ -261,7 +261,7 @@ MainWindow::MainWindow(QWidget *parent)
+ (statusBar()->height() * !hide_status_bar)
+ (ui->toolBar->height() * !hide_tool_bar);
ui->stackedWidget->resize(w, h);
ui->stackedWidget->resize(w, (h / (!dpi_scale ? util::screenOfWidget(this)->devicePixelRatio() : 1.)));
setFixedSize(w, modifiedHeight);
}
});