mirror of https://github.com/mgba-emu/mgba.git
Qt: Maybe don't resize the background
This commit is contained in:
parent
de25c0db6b
commit
481833c205
|
@ -1227,7 +1227,7 @@ void WindowBackground::paintEvent(QPaintEvent*) {
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue