-fixed banner display problems for some problematic banners

when anti aliasing is enabled
This commit is contained in:
fix94.1 2012-07-06 15:56:46 +00:00
parent c3d9b3deb6
commit e4212aaf23
2 changed files with 10 additions and 6 deletions

View File

@ -261,12 +261,15 @@ void BannerWindow::ReSetup_GX(void)
// texture environment // texture environment
GX_SetNumTevStages(1); GX_SetNumTevStages(1);
GX_SetNumIndStages(0); GX_SetNumIndStages(0);
GX_SetTevOp(GX_TEVSTAGE0, GX_MODULATE); for(u8 i = 0; i < video->getAA(); i++)
GX_SetTevOrder(GX_TEVSTAGE0, GX_TEXCOORD0, GX_TEXMAP0, GX_COLOR0A0); {
GX_SetTevSwapMode(GX_TEVSTAGE0, GX_TEV_SWAP0, GX_TEV_SWAP0); GX_SetTevOp(i, GX_MODULATE);
GX_SetTevKColorSel(GX_TEVSTAGE0, GX_TEV_KCSEL_1_4); GX_SetTevOrder(i, GX_TEXCOORD0, GX_TEXMAP0, GX_COLOR0A0);
GX_SetTevKAlphaSel(GX_TEVSTAGE0, GX_TEV_KASEL_1); GX_SetTevSwapMode(i, GX_TEV_SWAP0, GX_TEV_SWAP0);
GX_SetTevDirect(GX_TEVSTAGE0); GX_SetTevKColorSel(i, GX_TEV_KCSEL_1_4);
GX_SetTevKAlphaSel(i, GX_TEV_KASEL_1);
GX_SetTevDirect(i);
}
// swap table // swap table
GX_SetTevSwapModeTable(GX_TEV_SWAP0, GX_CH_RED, GX_CH_GREEN, GX_CH_BLUE, GX_CH_ALPHA); GX_SetTevSwapModeTable(GX_TEV_SWAP0, GX_CH_RED, GX_CH_GREEN, GX_CH_BLUE, GX_CH_ALPHA);
GX_SetTevSwapModeTable(GX_TEV_SWAP1, GX_CH_RED, GX_CH_RED, GX_CH_RED, GX_CH_ALPHA); GX_SetTevSwapModeTable(GX_TEV_SWAP1, GX_CH_RED, GX_CH_RED, GX_CH_RED, GX_CH_ALPHA);

View File

@ -63,6 +63,7 @@ public:
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; } bool vid_50hz(void) const { return m_50hz; }
u8 getAA(void) const { return m_aa; }
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);