From 892abc85899dce24e61a4f2682b4554967a972f9 Mon Sep 17 00:00:00 2001 From: ekeeke31 Date: Sun, 15 Jan 2012 19:54:19 +0000 Subject: [PATCH] fixed default manual scaling for Master System --- source/gx/gx_video.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/gx/gx_video.c b/source/gx/gx_video.c index 1ab503c..2e0fcdb 100644 --- a/source/gx/gx_video.c +++ b/source/gx/gx_video.c @@ -482,10 +482,16 @@ static void gxSetAspectRatio(int *xscale, int *yscale) { /* overscan is simulated (black) */ *yscale = vheight / 2; + + /* adjust when Genesis & Wii/GC video height does not match */ if (vdp_pal && (!gc_pal || config.render)) + { *yscale = *yscale * 240 / 288; + } else if (!vdp_pal && gc_pal && !config.render) + { *yscale = *yscale * 288 / 240; + } } /* horizontal borders */ @@ -517,7 +523,11 @@ static void gxSetAspectRatio(int *xscale, int *yscale) } else { - *yscale = (gc_pal && !config.render) ? 134 : 112; + *yscale = (vheight == 192) ? 96 : 112; + if (gc_pal && !config.render) + { + *yscale = (*yscale * 134) / 112; + } } /* horizontal borders */