all repos — mgba @ 481833c2052a749afe2a8f774ece5b11449e6f2a

mGBA Game Boy Advance Emulator

Qt: Maybe don't resize the background
Jeffrey Pfau jeffrey@endrift.com
Tue, 04 Aug 2015 22:13:11 -0700
commit

481833c2052a749afe2a8f774ece5b11449e6f2a

parent

de25c0db6b48ffe98752b716da12698d61e1c7d7

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

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

@@ -1227,7 +1227,7 @@ QPainter painter(this);

painter.setRenderHint(QPainter::SmoothPixmapTransform); painter.fillRect(QRect(QPoint(), size()), Qt::black); QSize s = size(); - QSize ds = s * 0.8; + QSize ds = s; if (ds.width() * m_aspectHeight > ds.height() * m_aspectWidth) { ds.setWidth(ds.height() * m_aspectWidth / m_aspectHeight); } else if (ds.width() * m_aspectHeight < ds.height() * m_aspectWidth) {