all repos — mgba @ 2f54fc732e1a89172ad9f6629268a34a58f730d0

mGBA Game Boy Advance Emulator

Qt: Fix crash when closing window while game running
Vicki Pfau vi@endrift.com
Sat, 26 Jan 2019 09:45:02 -0800
commit

2f54fc732e1a89172ad9f6629268a34a58f730d0

parent

9b1c3e53964a7c5afe704c57dbd656e4cfe801d1

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -782,11 +782,13 @@ m_screenWidget->setLockIntegerScaling(false);

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();