Qt: Maybe don't resize the background

This commit is contained in:
Jeffrey Pfau 2015-08-04 22:13:11 -07:00
parent de25c0db6b
commit 481833c205
1 changed files with 1 additions and 1 deletions

View File

@ -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) {