Qt: Fix saved scale not getting set on resize (fixes #1074)

This commit is contained in:
Vicki Pfau 2019-03-15 23:09:00 -07:00
parent 4cec95c2f1
commit a41e2dd225
2 changed files with 2 additions and 2 deletions

View File

@ -22,6 +22,7 @@ Other 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

View File

@ -577,9 +577,8 @@ void Window::resizeEvent(QResizeEvent* event) {
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);