Make Specify Dimensions work again

This commit is contained in:
Cacodemon345
2025-08-28 00:25:07 +06:00
parent 83cef9c49b
commit 6e526cd889

View File

@@ -112,4 +112,11 @@ SpecifyDimensions::on_SpecifyDimensions_accepted()
}
main_window->show();
emit main_window->updateWindowRememberOption();
if (vid_resize == 1) {
main_window->resize(ui->spinBoxWidth->value() / (!dpi_scale ? util::screenOfWidget(this)->devicePixelRatio() : 1.), (ui->spinBoxHeight->value() / (!dpi_scale ? util::screenOfWidget(this)->devicePixelRatio() : 1.))
+ main_window->menuBar()->height()
+ (main_window->statusBar()->height() * !hide_status_bar)
+ (main_window->ui->toolBar->height() * !hide_tool_bar));
}
}