mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 09:05:06 +01:00
-hopefully fixed strange white lines in picture
This commit is contained in:
parent
8e4bc53c21
commit
2782a51ce0
@ -104,6 +104,8 @@ void CVideo::setAA(u8 aa, bool alpha, int width, int height)
|
||||
}
|
||||
}
|
||||
|
||||
extern GXRModeObj TVPal574IntDfScale;
|
||||
|
||||
void CVideo::init(void)
|
||||
{
|
||||
VIDEO_Init();
|
||||
@ -113,8 +115,11 @@ void CVideo::init(void)
|
||||
u32 type = CONF_GetVideo();
|
||||
|
||||
m_rmode->viWidth = m_wide ? 700 : 672;
|
||||
if(m_rmode == &TVPal576IntDfScale || m_rmode == &TVPal576ProgScale)
|
||||
if(m_rmode == &TVPal576IntDfScale)
|
||||
{
|
||||
m_rmode = &TVPal574IntDfScale; //We may get some problems otherwise
|
||||
m_50hz = true;
|
||||
}
|
||||
else
|
||||
m_50hz = false;
|
||||
|
||||
|
@ -113,6 +113,39 @@ GXRModeObj TVPal528ProgUnknown =
|
||||
|
||||
};
|
||||
|
||||
GXRModeObj TVPal574IntDfScale =
|
||||
{
|
||||
VI_TVMODE_PAL_INT, // viDisplayMode
|
||||
640, // fbWidth
|
||||
480, // efbHeight
|
||||
574, // xfbHeight
|
||||
(VI_MAX_WIDTH_PAL - 640)/2, // viXOrigin
|
||||
(VI_MAX_HEIGHT_PAL - 574)/2, // viYOrigin
|
||||
640, // viWidth
|
||||
574, // 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,
|
||||
@ -179,7 +212,7 @@ static GXRModeObj* PAL2NTSC[]={
|
||||
&TVPal524IntAa, &TVNtsc480IntAa,
|
||||
&TVPal528Int, &TVNtsc480IntAa,
|
||||
&TVPal528IntDf, &TVNtsc480IntDf,
|
||||
&TVPal576IntDfScale, &TVNtsc480IntDf,
|
||||
&TVPal574IntDfScale, &TVNtsc480IntDf,
|
||||
&TVEurgb60Hz240Ds, &TVNtsc240Ds,
|
||||
&TVEurgb60Hz240DsAa, &TVNtsc240DsAa,
|
||||
&TVEurgb60Hz240Int, &TVNtsc240Int,
|
||||
|
Loading…
Reference in New Issue
Block a user