code tidy

This commit is contained in:
dborth 2009-10-13 05:09:43 +00:00
parent 2533738495
commit c30baad4dd

View File

@ -366,30 +366,6 @@ draw_square (Mtx v)
GX_End ();
}
/****************************************************************************
* StartGX
*
* Initialises GX and sets it up for use
***************************************************************************/
static void
StartGX ()
{
GXColor background = { 0, 0, 0, 0xff };
/*** Clear out FIFO area ***/
memset (&gp_fifo, 0, DEFAULT_FIFO_SIZE);
/*** Initialise GX ***/
GX_Init (&gp_fifo, DEFAULT_FIFO_SIZE);
GX_SetCopyClear (background, 0x00ffffff);
GX_SetDispCopyGamma (GX_GM_1_0);
GX_SetCullMode (GX_CULL_NONE);
vwidth = 100;
vheight = 100;
}
/****************************************************************************
* StopGX
*
@ -566,9 +542,19 @@ InitGCVideo ()
VIDEO_Init();
GXRModeObj *rmode = FindVideoMode();
SetupVideoMode(rmode);
StartGX ();
InitLUTs(); // init LUTs for hq2x
LWP_CreateThread (&vbthread, vbgetback, NULL, vbstack, TSTACK, 68);
// Initialize GX
GXColor background = { 0, 0, 0, 0xff };
memset (&gp_fifo, 0, DEFAULT_FIFO_SIZE);
GX_Init (&gp_fifo, DEFAULT_FIFO_SIZE);
GX_SetCopyClear (background, 0x00ffffff);
GX_SetDispCopyGamma (GX_GM_1_0);
GX_SetCullMode (GX_CULL_NONE);
vwidth = 100;
vheight = 100;
}
/****************************************************************************