mirror of https://github.com/mgba-emu/mgba.git
Qt: Only dynamically reset video scale if a game is running
This commit is contained in:
parent
7fb5d7006e
commit
d044c05f30
4
CHANGES
4
CHANGES
|
@ -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)
|
0.8.0: (2020-01-21)
|
||||||
Features:
|
Features:
|
||||||
- Improved logging configuration
|
- Improved logging configuration
|
||||||
|
|
|
@ -356,8 +356,10 @@ void PainterGL::resizeContext() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mCore* core = m_context->thread()->core;
|
if (m_started) {
|
||||||
core->reloadConfigOption(core, "videoScale", NULL);
|
mCore* core = m_context->thread()->core;
|
||||||
|
core->reloadConfigOption(core, "videoScale", NULL);
|
||||||
|
}
|
||||||
|
|
||||||
QSize size = m_context->screenDimensions();
|
QSize size = m_context->screenDimensions();
|
||||||
m_backend->setDimensions(m_backend, size.width(), size.height());
|
m_backend->setDimensions(m_backend, size.width(), size.height());
|
||||||
|
|
Loading…
Reference in New Issue