X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=42adf59f2238484634e1a346caed100ddc30d83c;hb=be18447f019fcb3ccbdcd5f804852815428a7f4b;hp=041098f2665f427118e8e5a8bce1b539d17e50f2;hpb=b17343806da99bd24842f0b2e58d8513e0108bb7;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 041098f2..42adf59f 100644 --- a/src/init.c +++ b/src/init.c @@ -35,12 +35,14 @@ #define CONFIG_TOKEN_FONT_INITIAL "font.initial" #define CONFIG_TOKEN_GLOBAL_BUSY "global.busy" +#define CONFIG_TOKEN_BACKGROUND_LOADING_INITIAL "background.LOADING_INITIAL" #define CONFIG_TOKEN_BACKGROUND_LOADING "background.LOADING" #define INITIAL_IMG_GLOBAL_BUSY 0 -#define INITIAL_IMG_BACKGROUND_LOADING 1 +#define INITIAL_IMG_BACKGROUND_LOADING_INITIAL 1 +#define INITIAL_IMG_BACKGROUND_LOADING 2 -#define NUM_INITIAL_IMAGES 2 +#define NUM_INITIAL_IMAGES 3 static struct FontBitmapInfo font_initial[NUM_INITIAL_FONTS]; @@ -102,13 +104,16 @@ static int get_graphic_parameter_value(char *, char *, int); static void SetLoadingBackgroundImage(void) { struct GraphicInfo *graphic_info_last = graphic_info; + int background_image = (game_status_last_screen == -1 ? + INITIAL_IMG_BACKGROUND_LOADING_INITIAL : + INITIAL_IMG_BACKGROUND_LOADING); graphic_info = image_initial; SetDrawDeactivationMask(REDRAW_NONE); SetDrawBackgroundMask(REDRAW_ALL); - SetWindowBackgroundImage(INITIAL_IMG_BACKGROUND_LOADING); + SetWindowBackgroundImage(background_image); graphic_info = graphic_info_last; } @@ -1718,6 +1723,8 @@ static void InitGraphicInfo(void) IMG_BACKGROUND_REQUEST, IMG_BACKGROUND, + IMG_BACKGROUND_LOADING_INITIAL, + IMG_BACKGROUND_LOADING, IMG_BACKGROUND_TITLE_INITIAL, IMG_BACKGROUND_TITLE, IMG_BACKGROUND_MAIN, @@ -1725,6 +1732,7 @@ static void InitGraphicInfo(void) IMG_BACKGROUND_LEVELS, IMG_BACKGROUND_LEVELNR, IMG_BACKGROUND_SCORES, + IMG_BACKGROUND_SCOREINFO, IMG_BACKGROUND_EDITOR, IMG_BACKGROUND_INFO, IMG_BACKGROUND_INFO_ELEMENTS, @@ -5567,6 +5575,7 @@ static void InitGfx(void) char *image_token[NUM_INITIAL_IMAGES] = { CONFIG_TOKEN_GLOBAL_BUSY, + CONFIG_TOKEN_BACKGROUND_LOADING_INITIAL, CONFIG_TOKEN_BACKGROUND_LOADING }; Bitmap *bitmap_font_initial = NULL;