From bfb986b974105878927889ebd8e7f7297a06284a Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 18 Oct 2014 04:33:30 -0700 Subject: [PATCH] Make logo scaled to the correct device pixel ratio --- src/platform/qt/Window.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index da0b25cb9..2ebd987f0 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -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) {