mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-02-21 14:27:09 +01:00
-fixed coverflow being too slow in PAL50 video mode
-commented out a problematic line in code
This commit is contained in:
parent
a9622f1516
commit
f83670be3d
@ -216,13 +216,21 @@ CCoverFlow::CCoverFlow(void)
|
|||||||
LWP_MutexInit(&m_mutex, 0);
|
LWP_MutexInit(&m_mutex, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CCoverFlow::init(const SmartBuf &font, u32 font_size)
|
bool CCoverFlow::init(const SmartBuf &font, u32 font_size, bool vid_50hz)
|
||||||
{
|
{
|
||||||
|
m_50hz = vid_50hz;
|
||||||
|
|
||||||
// Load font
|
// Load font
|
||||||
m_font.fromBuffer(font, font_size, TITLEFONT);
|
m_font.fromBuffer(font, font_size, TITLEFONT);
|
||||||
m_fontColor = CColor(0xFFFFFFFF);
|
m_fontColor = CColor(0xFFFFFFFF);
|
||||||
m_fanartFontColor = CColor(0xFFFFFFFF);
|
m_fanartFontColor = CColor(0xFFFFFFFF);
|
||||||
//
|
|
||||||
|
if(m_50hz)
|
||||||
|
{
|
||||||
|
gprintf("WiiFlow is in 50hz mode\n");
|
||||||
|
m_minDelay = 4;
|
||||||
|
}
|
||||||
|
|
||||||
if (CONF_GetAspectRatio() == CONF_ASPECT_16_9)
|
if (CONF_GetAspectRatio() == CONF_ASPECT_16_9)
|
||||||
guPerspective(m_projMtx, 45, 16.f / 9.f, .1f, 300.f);
|
guPerspective(m_projMtx, 45, 16.f / 9.f, .1f, 300.f);
|
||||||
else
|
else
|
||||||
@ -2347,7 +2355,7 @@ void CCoverFlow::prevID(wchar_t *c)
|
|||||||
|
|
||||||
void CCoverFlow::_coverTick(int i)
|
void CCoverFlow::_coverTick(int i)
|
||||||
{
|
{
|
||||||
float speed = m_selected ? 0.07f : 0.1f;
|
float speed = m_selected ? (m_50hz ? 0.085f : 0.07f) : (m_50hz ? 0.12f : 0.1f);
|
||||||
Vector3D posDist(m_covers[i].targetPos - m_covers[i].pos);
|
Vector3D posDist(m_covers[i].targetPos - m_covers[i].pos);
|
||||||
|
|
||||||
if (posDist.sqNorm() < 0.5f)
|
if (posDist.sqNorm() < 0.5f)
|
||||||
|
@ -38,7 +38,7 @@ public:
|
|||||||
CCoverFlow(void);
|
CCoverFlow(void);
|
||||||
~CCoverFlow(void);
|
~CCoverFlow(void);
|
||||||
//
|
//
|
||||||
bool init(const SmartBuf &font, u32 font_size);
|
bool init(const SmartBuf &font, u32 font_size, bool vid_50hz);
|
||||||
// Cover list management
|
// Cover list management
|
||||||
void clear(void);
|
void clear(void);
|
||||||
void reserve(u32 capacity);
|
void reserve(u32 capacity);
|
||||||
@ -257,6 +257,7 @@ private:
|
|||||||
bool m_fanartPlaying;
|
bool m_fanartPlaying;
|
||||||
bool m_box;
|
bool m_box;
|
||||||
bool m_useHQcover;
|
bool m_useHQcover;
|
||||||
|
bool m_50hz;
|
||||||
u32 m_range;
|
u32 m_range;
|
||||||
u32 m_rows;
|
u32 m_rows;
|
||||||
u32 m_columns;
|
u32 m_columns;
|
||||||
|
@ -112,6 +112,11 @@ void CVideo::init(void)
|
|||||||
|
|
||||||
m_rmode->viWidth = m_wide ? 700 : 672;
|
m_rmode->viWidth = m_wide ? 700 : 672;
|
||||||
|
|
||||||
|
if(m_rmode == &TVPal576IntDfScale || m_rmode == &TVPal576ProgScale)
|
||||||
|
m_50hz = true;
|
||||||
|
else
|
||||||
|
m_50hz = false;
|
||||||
|
|
||||||
//CONF_VIDEO_NTSC and CONF_VIDEO_MPAL and m_rmode TVEurgb60Hz480IntDf are the same max height and width.
|
//CONF_VIDEO_NTSC and CONF_VIDEO_MPAL and m_rmode TVEurgb60Hz480IntDf are the same max height and width.
|
||||||
if (type == CONF_VIDEO_PAL && m_rmode != &TVEurgb60Hz480IntDf)
|
if (type == CONF_VIDEO_PAL && m_rmode != &TVEurgb60Hz480IntDf)
|
||||||
{
|
{
|
||||||
@ -224,7 +229,7 @@ void CVideo::cleanup(void)
|
|||||||
SMART_FREE(m_aaBuffer[i]);
|
SMART_FREE(m_aaBuffer[i]);
|
||||||
m_aaBufferSize[i] = 0;
|
m_aaBufferSize[i] = 0;
|
||||||
}
|
}
|
||||||
MEM1_free(m_fifo);
|
//MEM1_free(m_fifo);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CVideo::prepareAAPass(int aaStep)
|
void CVideo::prepareAAPass(int aaStep)
|
||||||
|
@ -61,6 +61,7 @@ public:
|
|||||||
u32 width2D(void) { return m_width2D; }
|
u32 width2D(void) { return m_width2D; }
|
||||||
u32 height2D(void) { return m_height2D; }
|
u32 height2D(void) { return m_height2D; }
|
||||||
bool wide(void) const { return m_wide; }
|
bool wide(void) const { return m_wide; }
|
||||||
|
bool vid_50hz(void) const { return m_50hz; }
|
||||||
void set2DViewport(u32 w, u32 h, int x, int y);
|
void set2DViewport(u32 w, u32 h, int x, int y);
|
||||||
void prepareStencil(void);
|
void prepareStencil(void);
|
||||||
void renderStencil(void);
|
void renderStencil(void);
|
||||||
@ -80,6 +81,7 @@ private:
|
|||||||
float m_yScale;
|
float m_yScale;
|
||||||
u32 m_xfbHeight;
|
u32 m_xfbHeight;
|
||||||
bool m_wide;
|
bool m_wide;
|
||||||
|
bool m_50hz;
|
||||||
u32 m_width2D;
|
u32 m_width2D;
|
||||||
u32 m_height2D;
|
u32 m_height2D;
|
||||||
int m_x2D;
|
int m_x2D;
|
||||||
|
@ -325,7 +325,7 @@ void CMenu::init(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_cf.init(m_base_font, m_base_font_size);
|
m_cf.init(m_base_font, m_base_font_size, m_vid.vid_50hz());
|
||||||
|
|
||||||
//Make important folders first.
|
//Make important folders first.
|
||||||
makedir((char *)m_cacheDir.c_str());
|
makedir((char *)m_cacheDir.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user