Resize: also trigger on rotation + clang format

This commit is contained in:
Vitor Kiguchi 2020-12-11 19:21:52 -03:00
parent cc850a2eae
commit 6f209424ca

View File

@ -1693,8 +1693,7 @@ void GMainWindow::ResizeScreen(const int scale) {
ui->centralwidget->updateGeometry();
updateGeometry();
resize(minimumSizeHint());
}
else {
} else {
render_window->resize(scale * size.first, scale * size.second);
}
render_window->UpdateCurrentFramebufferLayout(scale * size.first, scale * size.second);
@ -1770,6 +1769,7 @@ void GMainWindow::OnSwapScreens() {
void GMainWindow::OnRotateScreens() {
Settings::values.upright_screen = ui->action_Screen_Layout_Upright_Screens->isChecked();
Settings::Apply();
ChangeScreenSize();
}
void GMainWindow::OnCheats() {