Make logo scaled to the correct device pixel ratio

This commit is contained in:
Jeffrey Pfau 2014-10-18 04:33:30 -07:00
parent 711231add6
commit bfb986b974
1 changed files with 3 additions and 1 deletions

View File

@ -210,7 +210,9 @@ void Window::redoLogo() {
if (m_controller->isLoaded()) {
return;
}
m_screenWidget->setPixmap(m_logo.scaled(m_screenWidget->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation));
QPixmap logo(m_logo.scaled(m_screenWidget->size() * m_screenWidget->devicePixelRatio(), Qt::KeepAspectRatio, Qt::SmoothTransformation));
logo.setDevicePixelRatio(m_screenWidget->devicePixelRatio());
m_screenWidget->setPixmap(logo);
}
void Window::openStateWindow(LoadSave ls) {