From e3b66dc3400bf942f05ef3622d5ea466c8d79059 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Sun, 1 Jul 2012 21:33:35 +0000 Subject: [PATCH] -added new pal video mode to patch for pal2ntsc patch which hopefully makes it working better --- source/loader/videopatch.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/source/loader/videopatch.c b/source/loader/videopatch.c index 9b4a2632..36ac4887 100644 --- a/source/loader/videopatch.c +++ b/source/loader/videopatch.c @@ -147,6 +147,39 @@ GXRModeObj TVMpal480Prog = } }; +GXRModeObj TVPal576IntDfScale = +{ + VI_TVMODE_PAL_INT, // viDisplayMode + 640, // fbWidth + 480, // efbHeight + 576, // xfbHeight + 40, // viXOrigin + 0, // viYOrigin + 640, // viWidth + 576, // viHeight + VI_XFBMODE_DF, // xFBmode + GX_FALSE, // field_rendering + GX_FALSE, // aa + + // sample points arranged in increasing Y order + { + {6,6},{6,6},{6,6}, // pix 0, 3 sample points, 1/12 units, 4 bits each + {6,6},{6,6},{6,6}, // pix 1 + {6,6},{6,6},{6,6}, // pix 2 + {6,6},{6,6},{6,6} // pix 3 + }, + // vertical filter[7], 1/64 units, 6 bits each + { + 8, // line n-1 + 8, // line n-1 + 10, // line n + 12, // line n + 10, // line n + 8, // line n+1 + 8 // line n+1 + } +}; + static const GXRModeObj *g_vidmodes[] = { &TVNtsc480Int, &TVNtsc480IntDf, @@ -214,6 +247,7 @@ static GXRModeObj* PAL2NTSC[]={ &TVPal528Int, &TVNtsc480IntAa, &TVPal528IntDf, &TVNtsc480IntDf, &TVPal574IntDfScale, &TVNtsc480IntDf, + &TVPal576IntDfScale, &TVNtsc480IntDf, &TVEurgb60Hz240Ds, &TVNtsc240Ds, &TVEurgb60Hz240DsAa, &TVNtsc240DsAa, &TVEurgb60Hz240Int, &TVNtsc240Int,