From 34b7bb2e1e6ffb28b295a9bb9c6f02e9a695d47b Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 23 Jan 2017 21:45:59 -0800 Subject: [PATCH] Qt: Fix sprites disappearing in sprite view --- src/platform/qt/ObjView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/qt/ObjView.cpp b/src/platform/qt/ObjView.cpp index f2471226b..f543adc27 100644 --- a/src/platform/qt/ObjView.cpp +++ b/src/platform/qt/ObjView.cpp @@ -76,6 +76,7 @@ void ObjView::updateTilesGBA(bool force) { }; 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 @@ void ObjView::updateTilesGB(bool force) { 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)) {