diff options
Diffstat (limited to 'htpstate.cpp')
-rw-r--r-- | htpstate.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/htpstate.cpp b/htpstate.cpp index ad830da..30d58a2 100644 --- a/htpstate.cpp +++ b/htpstate.cpp | |||
@@ -2,9 +2,15 @@ | |||
2 | 2 | ||
3 | HowToPlayState::HowToPlayState() | 3 | HowToPlayState::HowToPlayState() |
4 | { | 4 | { |
5 | background1 = SDL_LoadBMP("htp1.bmp"); | 5 | SDL_RWops *rw = SDL_RWFromMem(&_binary_htp1_bmp_start, (int) &_binary_htp1_bmp_size); |
6 | background2 = SDL_LoadBMP("htp2.bmp"); | 6 | background1 = SDL_LoadBMP_RW(rw, 1); |
7 | pointer = SDL_LoadBMP("pointer.bmp"); | 7 | |
8 | rw = SDL_RWFromMem(&_binary_htp2_bmp_start, (int) &_binary_htp2_bmp_size); | ||
9 | background2 = SDL_LoadBMP_RW(rw, 1); | ||
10 | |||
11 | rw = SDL_RWFromMem(&_binary_pointer_bmp_start, (int) &_binary_pointer_bmp_size); | ||
12 | pointer = SDL_LoadBMP_RW(rw, 1); | ||
13 | |||
8 | secondPage = false; | 14 | secondPage = false; |
9 | selection = 0; | 15 | selection = 0; |
10 | 16 | ||