Qt: Only dynamically reset video scale if a game is running
Vicki Pfau vi@endrift.com
Wed, 22 Jan 2020 18:19:43 -0800
2 files changed,
8 insertions(+),
2 deletions(-)
M
src/platform/qt/DisplayGL.cpp
→
src/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());