mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 15:02:20 +00:00
[CHG] Cancel GRRLIB_Init latest modification to make it another better way in next commit
This commit is contained in:
parent
bb7e859fd6
commit
412723840c
1 changed files with 3 additions and 3 deletions
|
@ -98,6 +98,9 @@ int GRRLIB_Init (void) {
|
||||||
// Clear the background to opaque black and clears the z-buffer
|
// Clear the background to opaque black and clears the z-buffer
|
||||||
GX_SetCopyClear((GXColor){ 0, 0, 0, 0 }, GX_MAX_Z24);
|
GX_SetCopyClear((GXColor){ 0, 0, 0, 0 }, GX_MAX_Z24);
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
// Other GX setup
|
// Other GX setup
|
||||||
yscale = GX_GetYScaleFactor(rmode->efbHeight, rmode->xfbHeight);
|
yscale = GX_GetYScaleFactor(rmode->efbHeight, rmode->xfbHeight);
|
||||||
xfbHeight = GX_SetDispCopyYScale(yscale);
|
xfbHeight = GX_SetDispCopyYScale(yscale);
|
||||||
|
@ -106,9 +109,6 @@ int GRRLIB_Init (void) {
|
||||||
GX_SetCopyFilter(rmode->aa, rmode->sample_pattern, GX_TRUE, rmode->vfilter);
|
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));
|
GX_SetFieldMode(rmode->field_rendering, ((rmode->viHeight == 2 * rmode->xfbHeight) ? GX_ENABLE : GX_DISABLE));
|
||||||
|
|
||||||
GX_SetPixelFmt(GX_PF_RGBA6_Z24,GX_ZC_LINEAR);
|
|
||||||
GX_PokeAlphaRead(GX_READ_NONE);
|
|
||||||
|
|
||||||
GX_SetDispCopyGamma(GX_GM_1_0);
|
GX_SetDispCopyGamma(GX_GM_1_0);
|
||||||
|
|
||||||
// Setup the vertex descriptor
|
// Setup the vertex descriptor
|
||||||
|
|
Loading…
Reference in a new issue