mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-12-23 02:39:19 +00:00
[CHG] Fix critical bug introduced in 151
This commit is contained in:
parent
622e74b66c
commit
1c10e17780
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue