void WaitForRelease( void ) { do { SDLU_Yield(); } while( AnyKeyIsPressed( ) || SDLU_Button() ); }
void ShowTitle( void ) { SDL_FillRect( g_frontSurface, &g_frontSurface->clip_rect, SDL_MapRGB( g_frontSurface->format, 0, 0, 0 ) ); SDLU_Present(); RetrieveResources( ); int time = MTickCount() + 120; while( time > MTickCount() && !SDLU_Button() ) { DrawPICTInSurface( g_frontSurface, picTitle ); SDLU_Present(); SDLU_Yield(); } WaitForRelease(); QuickFadeOut( NULL ); SDL_FillRect( g_frontSurface, &g_frontSurface->clip_rect, SDL_MapRGB( g_frontSurface->format, 0, 0, 0 ) ); SDLU_Present(); }