all repos — mgba @ d044c05f30cd6c7591c5ec03b310253fdc06d7d1

mGBA Game Boy Advance Emulator

Qt: Only dynamically reset video scale if a game is running
Vicki Pfau vi@endrift.com
Wed, 22 Jan 2020 18:19:43 -0800
commit

d044c05f30cd6c7591c5ec03b310253fdc06d7d1

parent

7fb5d7006e215a8bab770fb05bc7022a01bef48b

2 files changed, 8 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -1,3 +1,7 @@

+0.9.0: (Future) +Other fixes: + - Qt: Only dynamically reset video scale if a game is running + 0.8.0: (2020-01-21) Features: - Improved logging configuration
M src/platform/qt/DisplayGL.cppsrc/platform/qt/DisplayGL.cpp

@@ -356,8 +356,10 @@ if (!m_context) {

return; } - mCore* core = m_context->thread()->core; - core->reloadConfigOption(core, "videoScale", NULL); + if (m_started) { + mCore* core = m_context->thread()->core; + core->reloadConfigOption(core, "videoScale", NULL); + } QSize size = m_context->screenDimensions(); m_backend->setDimensions(m_backend, size.width(), size.height());