From 1eff870e6298c394ed2e5456d4bcd82e2a273252 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Thu, 26 Nov 2009 18:41:08 +0000 Subject: [PATCH] Add a background as well --- main.cpp | 4 ++++ themes/default/background.png | Bin 0 -> 13879 bytes 2 files changed, 4 insertions(+) create mode 100644 themes/default/background.png diff --git a/main.cpp b/main.cpp index d05d6a0..9aa912d 100644 --- a/main.cpp +++ b/main.cpp @@ -24,6 +24,7 @@ public: }; SDL_Surface *screen; +SDL_Surface *g_background; PrintMenu *g_menu; static void run(void) @@ -43,6 +44,7 @@ static void run(void) SDL_Flip(screen); SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0,0,0)); + SDL_BlitSurface(g_background, NULL, screen, NULL); SDL_Delay(50); } } @@ -80,6 +82,8 @@ static void init(void) fnt = read_and_alloc_font("font.ttf", 18); + g_background = IMG_Load("themes/default/background.png"); + bg_left = IMG_Load("themes/default/bg_left.png"); bg_right = IMG_Load("themes/default/bg_right.png"); bg_middle = IMG_Load("themes/default/bg_middle.png"); diff --git a/themes/default/background.png b/themes/default/background.png new file mode 100644 index 0000000000000000000000000000000000000000..7e8e03f8cfbd8c6d5e7ec9e8d09700ef3065bdc5 GIT binary patch literal 13879 zcmeHucT|(zns4YJ3MkUM1OaIuBGL(h0uc}_h}0ledhZZG5EPISq&HEDN|O#!{peDH zAiacMq=eoACo8S)(h9l{fp%yPvY3@_T-Hqw_%R(goHF5D4TF zT>b7N2!uEY0wJ2ABnMX{e@-rdKSXYi)RZB`eeA2?4Y`?y+Fb~q@c(^7emuBB<*csn z27yr16JA7+)O2QWk-{CWb&q0W%BM!xGW%#7TX&#HzYGayxf7av@$n6<(jK-5 z8_O}VgkmikeFK`2ffqVXR<~I!6QAYD7&U15ZWzdX5O|ZY%$j)dCFPZnp7?NytcGD6 z&Kz4lODT}}^vB^K*Q$))Gn~T2^06Y;U@br;DlRaw)@`|+nfH})Ff%U?DGJJy)E$Rj zu6^!cPW+3+kK|);K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