mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 18:15:46 -04:00
Use proper 21:9 aspect ratio, add 32:9
This commit is contained in:
@ -632,7 +632,11 @@ static void RTPS(const s16 V[3], u8 shift, bool lm, bool last)
|
||||
break;
|
||||
|
||||
case DisplayAspectRatio::R21_9:
|
||||
Sx = ((((s64(result) * s64(REGS.IR1)) * s64(4)) / s64(7)) + s64(REGS.OFX));
|
||||
Sx = ((((s64(result) * s64(REGS.IR1)) * s64(9)) / s64(16)) + s64(REGS.OFX));
|
||||
break;
|
||||
|
||||
case DisplayAspectRatio::R32_9:
|
||||
Sx = ((((s64(result) * s64(REGS.IR1)) * s64(3)) / s64(8)) + s64(REGS.OFX));
|
||||
break;
|
||||
|
||||
case DisplayAspectRatio::R8_7:
|
||||
@ -725,7 +729,11 @@ static void RTPS(const s16 V[3], u8 shift, bool lm, bool last)
|
||||
break;
|
||||
|
||||
case DisplayAspectRatio::R21_9:
|
||||
precise_x = (precise_x * 4.0f) / 7.0f;
|
||||
precise_x = (precise_x * 9.0f) / 16.0f;
|
||||
break;
|
||||
|
||||
case DisplayAspectRatio::R32_9:
|
||||
precise_x = (precise_x * 3.0f) / 8.0f;
|
||||
break;
|
||||
|
||||
case DisplayAspectRatio::R8_7:
|
||||
|
Reference in New Issue
Block a user