mirror of
https://github.com/libretro/mgba.git
synced 2024-11-23 16:10:01 +00:00
Qt: Fix saved scale not getting set on resize (fixes #1074)
This commit is contained in:
parent
4cec95c2f1
commit
a41e2dd225
1
CHANGES
1
CHANGES
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user