all repos — mgba @ 37a564da4c34ec84f95a1224e5f5fc1161176184

mGBA Game Boy Advance Emulator

Qt: Fix adjusting magnification in tile viewer when not fitting to window
Vicki Pfau vi@endrift.com
Tue, 30 Apr 2019 18:16:44 -0700
commit

37a564da4c34ec84f95a1224e5f5fc1161176184

parent

0f9c4bbe60d4c30e10ac0d15d5c653297c51e034

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

jump to
M CHANGESCHANGES

@@ -33,6 +33,7 @@ - 3DS: Ensure core 2 can be used for threaded renderer (fixes mgba.io/i/1371)

- 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
M src/platform/qt/TileView.cppsrc/platform/qt/TileView.cpp

@@ -65,7 +65,10 @@ break;

} 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); });