mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix loading a new game crashing on Wayland (fixes #1992)
This commit is contained in:
parent
ff6218fe1e
commit
cadceecdab
1
CHANGES
1
CHANGES
|
@ -82,6 +82,7 @@ Other fixes:
|
||||||
- Qt: Fix crash when editing shortcuts with none selected (fixes mgba.io/i/1964)
|
- Qt: Fix crash when editing shortcuts with none selected (fixes mgba.io/i/1964)
|
||||||
- Qt: Fix crashing when no OpenGL context can be obtained
|
- Qt: Fix crashing when no OpenGL context can be obtained
|
||||||
- Qt: Fix issues with I/O viewer not properly synchronizing state
|
- Qt: Fix issues with I/O viewer not properly synchronizing state
|
||||||
|
- Qt: Fix loading a new game crashing on Wayland (fixes mgba.io/i/1992)
|
||||||
- SM83: Simplify register pair access on big endian
|
- SM83: Simplify register pair access on big endian
|
||||||
- SM83: Disassemble STOP as one byte
|
- SM83: Disassemble STOP as one byte
|
||||||
- Wii: Fix crash on unloading irregularly sized GBA ROMs
|
- Wii: Fix crash on unloading irregularly sized GBA ROMs
|
||||||
|
|
|
@ -808,15 +808,6 @@ void Window::gameStopped() {
|
||||||
action->setEnabled(false);
|
action->setEnabled(false);
|
||||||
}
|
}
|
||||||
setWindowFilePath(QString());
|
setWindowFilePath(QString());
|
||||||
detachWidget(m_display.get());
|
|
||||||
setLogo();
|
|
||||||
if (m_display) {
|
|
||||||
#ifdef M_CORE_GB
|
|
||||||
m_display->setMinimumSize(GB_VIDEO_HORIZONTAL_PIXELS, GB_VIDEO_VERTICAL_PIXELS);
|
|
||||||
#elif defined(M_CORE_GBA)
|
|
||||||
m_display->setMinimumSize(GBA_VIDEO_HORIZONTAL_PIXELS, GBA_VIDEO_VERTICAL_PIXELS);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
m_actions.clearMenu("videoLayers");
|
m_actions.clearMenu("videoLayers");
|
||||||
m_actions.clearMenu("audioChannels");
|
m_actions.clearMenu("audioChannels");
|
||||||
|
@ -829,6 +820,15 @@ void Window::gameStopped() {
|
||||||
m_audioProcessor.reset();
|
m_audioProcessor.reset();
|
||||||
}
|
}
|
||||||
m_display->stopDrawing();
|
m_display->stopDrawing();
|
||||||
|
detachWidget(m_display.get());
|
||||||
|
setLogo();
|
||||||
|
if (m_display) {
|
||||||
|
#ifdef M_CORE_GB
|
||||||
|
m_display->setMinimumSize(GB_VIDEO_HORIZONTAL_PIXELS, GB_VIDEO_VERTICAL_PIXELS);
|
||||||
|
#elif defined(M_CORE_GBA)
|
||||||
|
m_display->setMinimumSize(GBA_VIDEO_HORIZONTAL_PIXELS, GBA_VIDEO_VERTICAL_PIXELS);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
m_controller.reset();
|
m_controller.reset();
|
||||||
updateTitle();
|
updateTitle();
|
||||||
|
|
Loading…
Reference in New Issue