all repos — mgba @ 8b6a6ff2c4c4387180a6e884744d369d5d1cba07

mGBA Game Boy Advance Emulator

Merge pull request #322 from snickerbockers/master

Qt: Fix software renderer scaling
endrift jeffrey@endrift.com
Sat, 06 Aug 2016 12:04:24 -0700
commit

8b6a6ff2c4c4387180a6e884744d369d5d1cba07

parent

63a06ecc05ef5fd2dd350532e685192bb383052f

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

jump to
M CHANGESCHANGES

@@ -15,6 +15,7 @@ - ARM7: Fix decoding of Thumb ADD (variants 5 and 6)

- 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
M src/platform/qt/DisplayQt.cppsrc/platform/qt/DisplayQt.cpp

@@ -62,7 +62,7 @@ QSize s = size();

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); }