mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-12 11:19:07 +01:00
code tidy
This commit is contained in:
parent
2533738495
commit
c30baad4dd
@ -366,30 +366,6 @@ draw_square (Mtx v)
|
|||||||
GX_End ();
|
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
|
* StopGX
|
||||||
*
|
*
|
||||||
@ -566,9 +542,19 @@ InitGCVideo ()
|
|||||||
VIDEO_Init();
|
VIDEO_Init();
|
||||||
GXRModeObj *rmode = FindVideoMode();
|
GXRModeObj *rmode = FindVideoMode();
|
||||||
SetupVideoMode(rmode);
|
SetupVideoMode(rmode);
|
||||||
StartGX ();
|
|
||||||
InitLUTs(); // init LUTs for hq2x
|
InitLUTs(); // init LUTs for hq2x
|
||||||
LWP_CreateThread (&vbthread, vbgetback, NULL, vbstack, TSTACK, 68);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user