all repos — mgba @ 99a063858bb432bccd02d8482ade56258b65bae7

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

99a063858bb432bccd02d8482ade56258b65bae7

parent

0de37f30b6cd87e6e48e8c6ea213c8ed5626397c

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

jump to
M CHANGESCHANGES

@@ -18,6 +18,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: - Qt: Add missing HEVC NVENC option (fixes mgba.io/i/1323) - Qt: Improve camera initialization
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); });