mirror of
https://github.com/libretro/mgba.git
synced 2024-11-24 00:20:05 +00:00
Qt: Fix software renderer scaling
This commit is contained in:
parent
8a68de198c
commit
ebb589107b
1
CHANGES
1
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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user