mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix adjusting magnification in tile viewer when not fitting to window
This commit is contained in:
parent
0f9c4bbe60
commit
37a564da4c
1
CHANGES
1
CHANGES
|
@ -33,6 +33,7 @@ Other fixes:
|
|||
- GB Core: Fix toggling WIN and OBJ being swapped
|
||||
- All: Fix several memory leaks
|
||||
- LR35902: Fix trailing whitespace in disassembly
|
||||
- Qt: Fix adjusting magnification in tile viewer when not fitting to window
|
||||
Misc:
|
||||
- GBA Savedata: EEPROM performance fixes
|
||||
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
|
||||
|
|
|
@ -65,7 +65,10 @@ TileView::TileView(std::shared_ptr<CoreController> controller, QWidget* parent)
|
|||
}
|
||||
updateTiles(true);
|
||||
});
|
||||
connect(m_ui.magnification, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), [this]() {
|
||||
connect(m_ui.magnification, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), [this](int mag) {
|
||||
if (!m_ui.tileFit->isChecked()) {
|
||||
m_ui.tiles->setMinimumSize(mag * 8 * m_ui.tilesPerRow->value(), m_ui.tiles->minimumSize().height());
|
||||
}
|
||||
updateTiles(true);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue