all repos — mgba @ bfb986b974105878927889ebd8e7f7297a06284a

mGBA Game Boy Advance Emulator

Make logo scaled to the correct device pixel ratio
Jeffrey Pfau jeffrey@endrift.com
Sat, 18 Oct 2014 04:33:30 -0700
commit

bfb986b974105878927889ebd8e7f7297a06284a

parent

711231add6691731a5bf291a4c61b7f38f8c87b2

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

jump to
M src/platform/qt/Window.cppsrc/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) {