Merge pull request #12666 from jdgleaver/odbeta-snes-scaling-fix

(OpenDingux Beta) Fix IPU scaling when running 256x224 (SNES/Genesis) content
This commit is contained in:
Autechre 2021-07-16 19:04:57 +02:00 committed by GitHub
commit e5bbd9488f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -581,6 +581,12 @@ static void sdl_dingux_sanitize_frame_dimensions(
/* GB/GBC/GG (x3) @ 480x432 */
else if ((width == 480) && (height == 432))
*sanitized_width = 496;
/* SNES/Genesis @ 256x224 */
else if ((width == 256) && (height == 224))
*sanitized_width = 288;
/* SNES/Genesis (x2) @ 512x448 */
else if ((width == 512) && (height == 448))
*sanitized_width = 560;
}
#endif