all repos — mgba @ 7bc605fcc0e04ae6f8ce92e21c9f3654c1930635

mGBA Game Boy Advance Emulator

Qt: Limit number of GB sprites correctly
Vicki Pfau vi@endrift.com
Sun, 18 Jun 2017 08:59:08 -0700
commit

7bc605fcc0e04ae6f8ce92e21c9f3654c1930635

parent

ec0ed4159bc942e1b62e9724af95a9f8474dcff4

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

jump to
M src/platform/qt/ObjView.cppsrc/platform/qt/ObjView.cpp

@@ -68,6 +68,7 @@ }

#ifdef M_CORE_GBA void ObjView::updateTilesGBA(bool force) { + m_ui.objId->setMaximum(127); const GBA* gba = static_cast<const GBA*>(m_controller->thread()->core->board); const GBAObj* obj = &gba->video.oam.obj[m_objId];

@@ -172,6 +173,7 @@ #endif

#ifdef M_CORE_GB void ObjView::updateTilesGB(bool force) { + m_ui.objId->setMaximum(39); const GB* gb = static_cast<const GB*>(m_controller->thread()->core->board); const GBObj* obj = &gb->video.oam.obj[m_objId];