[CHG] GRRLIB_Init forced to specific pixelfmt, copyclear alpha to 0, GX_PokeAlphaRead to none. (all this for real alphaed compositing)

This commit is contained in:
N0NameN0 2009-11-25 20:59:15 +00:00
parent 57524607cf
commit d747469c4d

View file

@ -96,7 +96,7 @@ int GRRLIB_Init (void) {
GX_Init(gp_fifo, DEFAULT_FIFO_SIZE);
// Clear the background to opaque black and clears the z-buffer
GX_SetCopyClear((GXColor){ 0, 0, 0, 0xff }, GX_MAX_Z24);
GX_SetCopyClear((GXColor){ 0, 0, 0, 0 }, GX_MAX_Z24);
// Other GX setup
yscale = GX_GetYScaleFactor(rmode->efbHeight, rmode->xfbHeight);
@ -106,8 +106,8 @@ int GRRLIB_Init (void) {
GX_SetCopyFilter(rmode->aa, rmode->sample_pattern, GX_TRUE, rmode->vfilter);
GX_SetFieldMode(rmode->field_rendering, ((rmode->viHeight == 2 * rmode->xfbHeight) ? GX_ENABLE : GX_DISABLE));
if (rmode->aa) GX_SetPixelFmt(GX_PF_RGB565_Z16, GX_ZC_LINEAR) ; // Set 16 bit RGB565
else GX_SetPixelFmt(GX_PF_RGB8_Z24 , GX_ZC_LINEAR) ; // Set 24 bit Z24
GX_SetPixelFmt(GX_PF_RGBA6_Z24,GX_ZC_LINEAR);
GX_PokeAlphaRead(GX_READ_NONE);
GX_SetDispCopyGamma(GX_GM_1_0);