From 1c10e177806b5831928e3970482ea007fad9a62c Mon Sep 17 00:00:00 2001 From: csBlueChip Date: Sat, 5 Sep 2009 17:05:31 +0000 Subject: [PATCH] [CHG] Fix critical bug introduced in 151 --- GRRLIB/GRRLIB/GRRLIB_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GRRLIB/GRRLIB/GRRLIB_core.c b/GRRLIB/GRRLIB/GRRLIB_core.c index e3a8f16..81f8ee5 100644 --- a/GRRLIB/GRRLIB/GRRLIB_core.c +++ b/GRRLIB/GRRLIB/GRRLIB_core.c @@ -53,6 +53,7 @@ int GRRLIB_Init (void) { // Initialise the video subsystem VIDEO_Init(); + VIDEO_SetBlack(true); // Disable video output during initialisation // Grab a pointer to the video mode attributes if ( !(rmode = VIDEO_GetPreferredMode(NULL)) ) return -1 ; @@ -82,7 +83,6 @@ int GRRLIB_Init (void) { if ( !(xfb[1] = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode))) ) return -1 ; VIDEO_SetNextFramebuffer(xfb[fb]); // Choose a frame buffer to start with - VIDEO_SetBlack(true); // and paint it black VIDEO_Flush(); // flush the frame to the TV VIDEO_WaitVSync(); // Wait for the TV to finish updating @@ -158,6 +158,7 @@ int GRRLIB_Init (void) { // Initialise the filing system if (!fatInitDefault()) return -2 ; + VIDEO_SetBlack(false); // Enable video output return 0; }