all repos — mgba @ a41e2dd2253ef1d08b3445a221848c6f849f49f7

mGBA Game Boy Advance Emulator

Qt: Fix saved scale not getting set on resize (fixes #1074)
Vicki Pfau vi@endrift.com
Fri, 15 Mar 2019 23:09:00 -0700
commit

a41e2dd2253ef1d08b3445a221848c6f849f49f7

parent

4cec95c2f1f8d1f263b50d6963ed37290740e23f

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

jump to
M CHANGESCHANGES

@@ -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.cppsrc/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);