moved draw_loading_screen to mainmenu.c as per lao's suggestion

This commit is contained in:
Andrei "Akari" Alexeyev 2017-03-07 03:04:23 +02:00
parent 389a26dbcf
commit 2057a49d47
4 changed files with 8 additions and 10 deletions

View file

@ -16,6 +16,7 @@
#include "spellpractice.h"
#include "global.h"
#include "video.h"
#include "stage.h"
#include "paths/native.h"
@ -162,3 +163,9 @@ void draw_main_menu(MenuData *menu) {
}
}
void draw_loading_screen(void) {
set_ortho();
draw_texture(SCREEN_W/2, SCREEN_H/2, "loading");
SDL_GL_SwapWindow(video.window);
}

View file

@ -14,5 +14,6 @@ void create_main_menu(MenuData *m);
void draw_main_menu_bg(MenuData *m);
void draw_main_menu(MenuData *m);
void main_menu_update_spellpractice(void);
void draw_loading_screen(void);
#endif

View file

@ -314,12 +314,6 @@ void free_resources(void) {
delete_fbo(&resources.fsec);
}
void draw_loading_screen(void) {
set_ortho();
draw_texture(SCREEN_W/2, SCREEN_H/2, "loading");
SDL_GL_SwapWindow(video.window);
}
void print_resource_hashtables(void) {
for(ResourceType type = 0; type < RES_NUMTYPES; ++type) {
hashtable_print_stringkeys(get_handler(type)->mapping);

View file

@ -102,10 +102,6 @@ void free_resources(void);
Resource* get_resource(ResourceType type, const char *name, ResourceFlags flags);
Resource* insert_resource(ResourceType type, const char *name, void *data, ResourceFlags flags, const char *source);
void draw_loading_screen(void);
void resources_delete_and_unset_all(Hashtable *ht, HTIterCallback ifunc, void *arg);
void resource_util_strip_ext(char *path);
char* resource_util_basename(const char *prefix, const char *path);
const char* resource_util_filename(const char *path);