all repos — mgba @ 34b7bb2e1e6ffb28b295a9bb9c6f02e9a695d47b

mGBA Game Boy Advance Emulator

Qt: Fix sprites disappearing in sprite view
Vicki Pfau vi@endrift.com
Mon, 23 Jan 2017 21:45:59 -0800
commit

34b7bb2e1e6ffb28b295a9bb9c6f02e9a695d47b

parent

5ac712c54c07b034e96b1ffc7ec39b819c7b121a

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

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

@@ -76,6 +76,7 @@ width / 8

}; m_ui.tiles->setTileCount(width * height / 64); m_ui.tiles->setMinimumSize(QSize(width, height) * m_ui.magnification->value()); + m_ui.tiles->resize(QSize(width, height) * m_ui.magnification->value()); unsigned palette = GBAObjAttributesCGetPalette(obj->c); GBARegisterDISPCNT dispcnt = gba->memory.io[0]; // FIXME: Register name can't be imported due to namespacing issues if (!GBARegisterDISPCNTIsObjCharacterMapping(dispcnt)) {

@@ -186,6 +187,7 @@ }

m_objInfo = newInfo; m_ui.tiles->setTileCount(width * height / 64); m_ui.tiles->setMinimumSize(QSize(width, height) * m_ui.magnification->value()); + m_ui.tiles->resize(QSize(width, height) * m_ui.magnification->value()); int palette = 0; if (gb->model >= GB_MODEL_CGB) { if (GBObjAttributesIsBank(obj->attr)) {