// fill buffers with the static screen void initLoadingScreen( bool drawbdrop ) { setupLoadingScreen(); wzShowMouse(false); pie_SetFogStatus(false); // setup the callback.... resSetLoadCallback(loadingScreenCallback); if (drawbdrop) { if (!screen_GetBackDrop()) { pie_LoadBackDrop(SCREEN_RANDOMBDROP); } screen_RestartBackDrop(); } else { screen_StopBackDrop(); } // Start with two cleared buffers as the hacky loading screen code re-uses old buffers to create its effect. pie_ScreenFlip(CLEAR_BLACK); pie_ScreenFlip(CLEAR_BLACK); }
// ////////////////////////////////////////////////////////////////// // Initialise frontend globals and statics. // bool frontendInitVars(void) { firstcall = true; setupLoadingScreen(); return true; }