// 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); }
// shut down the loading screen void closeLoadingScreen(void) { if (stars) { free(stars); stars = NULL; } resSetLoadCallback(NULL); }
// shut down the loading screen void closeLoadingScreen(void) { if (stars) { free(stars); stars = NULL; } resSetLoadCallback(NULL); pie_ScreenFlip(CLEAR_BLACK); }
// fill buffers with the static screen void initLoadingScreen( bool drawbdrop ) { pie_ShowMouse(false); if (!drawbdrop) // fill buffers { //just init the load bar with the current screen // setup the callback.... pie_SetFogStatus(false); pie_ScreenFlip(CLEAR_BLACK); resSetLoadCallback(loadingScreenCallback); return; } pie_SetFogStatus(false); pie_ScreenFlip(CLEAR_BLACK);//init loading // setup the callback.... resSetLoadCallback(loadingScreenCallback); // NOTE: When this is called, we stop the backdrop, but since the screen // is double buffered, we only have the backdrop on 1 buffer, and not the other. //screen_StopBackDrop(); }