all repos — mgba @ 6e1483cb473b8d0d860b2b3b83436ecd47be524e

mGBA Game Boy Advance Emulator

Qt: Fix tile count being way off
Jeffrey Pfau jeffrey@endrift.com
Fri, 21 Oct 2016 03:38:03 -0700
commit

6e1483cb473b8d0d860b2b3b83436ecd47be524e

parent

d62df680581b352c054b8cb877223ec72670add5

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

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

@@ -55,7 +55,7 @@ }

void TilePainter::setTileCount(int tiles) { m_tileCount = tiles; - if (sizePolicy().verticalPolicy() != QSizePolicy::Fixed) { + if (sizePolicy().horizontalPolicy() != QSizePolicy::Fixed) { // Only manage the size ourselves if we don't appear to have something else managing it int w = width() / m_size; int h = (tiles + w - 1) * m_size / w;