mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix crash when closing window while game running
This commit is contained in:
parent
1ef1ebbf8d
commit
a69da4c5a4
|
@ -781,11 +781,13 @@ void Window::gameStopped() {
|
|||
m_screenWidget->setLockAspectRatio(true);
|
||||
m_screenWidget->setPixmap(m_logo);
|
||||
m_screenWidget->unsetCursor();
|
||||
if (m_display) {
|
||||
#ifdef M_CORE_GB
|
||||
m_display->setMinimumSize(GB_VIDEO_HORIZONTAL_PIXELS, GB_VIDEO_VERTICAL_PIXELS);
|
||||
m_display->setMinimumSize(GB_VIDEO_HORIZONTAL_PIXELS, GB_VIDEO_VERTICAL_PIXELS);
|
||||
#elif defined(M_CORE_GBA)
|
||||
m_display->setMinimumSize(VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS);
|
||||
m_display->setMinimumSize(VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS);
|
||||
#endif
|
||||
}
|
||||
|
||||
m_videoLayers->clear();
|
||||
m_audioChannels->clear();
|
||||
|
|
Loading…
Reference in New Issue