diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 96504cf23..2de91a279 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -292,6 +292,15 @@ MainWindow::MainWindow(QWidget *parent) : ui->actionTake_screenshot->setShortcutVisibleInContextMenu(true); #endif video_setblit(qt_blit); + + if (start_in_fullscreen) { + connect(ui->stackedWidget, &RendererStack::blitToRenderer, this, [this] () { + if (start_in_fullscreen) { + QTimer::singleShot(100, ui->actionFullscreen, &QAction::trigger); + start_in_fullscreen = 0; + } + }); + } } void MainWindow::closeEvent(QCloseEvent *event) { @@ -967,6 +976,7 @@ void MainWindow::on_actionFullscreen_triggered() { showFullScreen(); video_fullscreen = 1; } + ui->stackedWidget->rendererWindow->onResize(width(), height()); } void MainWindow::getTitle_(wchar_t *title)