Qt: Fix saved scale not getting set on resize (fixes #1074)
Vicki Pfau vi@endrift.com
Fri, 15 Mar 2019 23:09:00 -0700
2 files changed,
2 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -22,6 +22,7 @@ - Qt: More app metadata fixes
- Qt: Fix load recent from archive (fixes mgba.io/i/1325) - LR35902: Fix disassembly of several CB-prefix instructions - Qt: Fix overrides getting discarded (fixes mgba.io/i/1354) + - Qt: Fix saved scale not getting set on resize (fixes mgba.io/i/1074) Misc: - GBA Savedata: EEPROM performance fixes - GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
M
src/platform/qt/Window.cpp
→
src/platform/qt/Window.cpp
@@ -577,9 +577,8 @@ }
if (m_screenWidget->width() % size.width() == 0 && m_screenWidget->height() % size.height() == 0 && m_screenWidget->width() / size.width() == m_screenWidget->height() / size.height()) { factor = m_screenWidget->width() / size.width(); - } else { - m_savedScale = 0; } + m_savedScale = factor; for (QMap<int, QAction*>::iterator iter = m_frameSizes.begin(); iter != m_frameSizes.end(); ++iter) { bool enableSignals = iter.value()->blockSignals(true); iter.value()->setChecked(iter.key() == factor);