Skip to content

Commit

Permalink
Don't try to call transferLayout on non-GL ScreenPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiaholmquist committed Dec 22, 2023
1 parent 752b37e commit 521fc24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/qt_sdl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ EmuThread::EmuThread(QObject* parent) : QThread(parent)
connect(this, SIGNAL(swapScreensToggle()), mainWindow->actScreenSwap, SLOT(trigger()));
connect(this, SIGNAL(screenEmphasisToggle()), mainWindow, SLOT(onScreenEmphasisToggled()));

static_cast<ScreenPanelGL*>(mainWindow->panel)->transferLayout(this);
auto glPanel = dynamic_cast<ScreenPanelGL*>(mainWindow->panel);
if (glPanel) glPanel->transferLayout(this);
}

std::unique_ptr<NDS> EmuThread::CreateConsole(
Expand Down

0 comments on commit 521fc24

Please sign in to comment.