Fix crash when switching fullscreen stretching modes when fullscreen

This commit is contained in:
Cacodemon345
2021-12-31 13:02:27 +06:00
parent 81055c03e2
commit 9b8650cae5
3 changed files with 7 additions and 1 deletions

View File

@@ -1154,7 +1154,7 @@ static void update_fullscreen_scale_checkboxes(Ui::MainWindow* ui, QAction* sele
if (video_fullscreen > 0) {
auto widget = ui->stackedWidget->currentWidget();
auto rc = dynamic_cast<RendererCommon*>(widget);
auto rc = ui->stackedWidget->rendererWindow;
rc->onResize(widget->width(), widget->height());
}