From d747469c4dc7cb790ac354cd716ade9667083daf Mon Sep 17 00:00:00 2001 From: N0NameN0 Date: Wed, 25 Nov 2009 20:59:15 +0000 Subject: [PATCH] [CHG] GRRLIB_Init forced to specific pixelfmt, copyclear alpha to 0, GX_PokeAlphaRead to none. (all this for real alphaed compositing) --- GRRLIB/GRRLIB/GRRLIB_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GRRLIB/GRRLIB/GRRLIB_core.c b/GRRLIB/GRRLIB/GRRLIB_core.c index 3fa6155..40652e3 100644 --- a/GRRLIB/GRRLIB/GRRLIB_core.c +++ b/GRRLIB/GRRLIB/GRRLIB_core.c @@ -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);