From ebb589107bec34cdd7e3f8348f7bd509dc808e34 Mon Sep 17 00:00:00 2001 From: snickerbockers Date: Sat, 6 Aug 2016 04:56:13 -0700 Subject: [PATCH] Qt: Fix software renderer scaling --- CHANGES | 1 + src/platform/qt/DisplayQt.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 0bc9c3ecf..7a0e7d2c9 100644 --- a/CHANGES +++ b/CHANGES @@ -15,6 +15,7 @@ Bugfixes: - GBA Serialize: Savestates now properly store prefetch - PSP2: Fix accelerometer range - PSP2: Actually load screen mode setting + - Qt: Fix bug in software renderer scaling Misc: - 3DS: Use blip_add_delta_fast for a small speed improvement - OpenGL: Log shader compilation failure diff --git a/src/platform/qt/DisplayQt.cpp b/src/platform/qt/DisplayQt.cpp index a18782e85..68a68e578 100644 --- a/src/platform/qt/DisplayQt.cpp +++ b/src/platform/qt/DisplayQt.cpp @@ -62,7 +62,7 @@ void DisplayQt::paintEvent(QPaintEvent*) { QSize ds = s; if (isAspectRatioLocked()) { if (s.width() * m_height > s.height() * m_width) { - ds.setWidth(s.height() * m_width / 2); + ds.setWidth(s.height() * m_width / m_height); } else if (s.width() * m_height < s.height() * m_width) { ds.setHeight(s.width() * m_height / m_width); }