mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
OpenDingux Beta: Fix IPU scaling when running GB/GBC/GG/NGP-resolution content
This commit is contained in:
parent
2fbcc99b24
commit
a81280939e
@ -509,6 +509,23 @@ static void sdl_dingux_sanitize_frame_dimensions(
|
|||||||
/* Neo Geo @ 304x224 */
|
/* Neo Geo @ 304x224 */
|
||||||
if (!vid->integer_scaling && (width == 304) && (height == 224))
|
if (!vid->integer_scaling && (width == 304) && (height == 224))
|
||||||
*sanitized_width = 320;
|
*sanitized_width = 320;
|
||||||
|
#if defined(DINGUX_BETA)
|
||||||
|
else if (vid->keep_aspect && !vid->integer_scaling)
|
||||||
|
{
|
||||||
|
/* Neo Geo Pocket (x2) @ 320x304 */
|
||||||
|
if ((width == 320) && (height == 304))
|
||||||
|
*sanitized_width = 336;
|
||||||
|
/* GB/GBC/GG @ 160x144 */
|
||||||
|
else if ((width == 160) && (height == 144))
|
||||||
|
*sanitized_width = 176;
|
||||||
|
/* GB/GBC/GG (x2) @ 320x288 */
|
||||||
|
else if ((width == 320) && (height == 288))
|
||||||
|
*sanitized_width = 336;
|
||||||
|
/* GB/GBC/GG (x3) @ 480x432 */
|
||||||
|
else if ((width == 480) && (height == 432))
|
||||||
|
*sanitized_width = 496;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*** HEIGHT ***/
|
/*** HEIGHT ***/
|
||||||
*sanitized_height = height;
|
*sanitized_height = height;
|
||||||
@ -521,12 +538,15 @@ static void sdl_dingux_sanitize_frame_dimensions(
|
|||||||
/* TIC-80 @ 240x136 */
|
/* TIC-80 @ 240x136 */
|
||||||
else if ((width == 240) && (height == 136))
|
else if ((width == 240) && (height == 136))
|
||||||
*sanitized_height = 144;
|
*sanitized_height = 144;
|
||||||
/* GBA @ 240x160 */
|
else if (vid->keep_aspect && !vid->integer_scaling)
|
||||||
else if (vid->keep_aspect && (width == 240) && (height == 160))
|
{
|
||||||
*sanitized_height = 162;
|
/* GBA @ 240x160 */
|
||||||
/* GBA (x2) @ 480x320 */
|
if ((width == 240) && (height == 160))
|
||||||
else if (vid->keep_aspect && (width == 480) && (height == 320))
|
*sanitized_height = 162;
|
||||||
*sanitized_height = 324;
|
/* GBA (x2) @ 480x320 */
|
||||||
|
else if ((width == 480) && (height == 320))
|
||||||
|
*sanitized_height = 324;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
/* Neo Geo Pocket @ 160x152 */
|
/* Neo Geo Pocket @ 160x152 */
|
||||||
if (!vid->integer_scaling && (width == 160) && (height == 152))
|
if (!vid->integer_scaling && (width == 160) && (height == 152))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user