diff options
Diffstat (limited to 'titlestate.cpp')
| -rw-r--r-- | titlestate.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
| diff --git a/titlestate.cpp b/titlestate.cpp index 6c4401d..980e3b6 100644 --- a/titlestate.cpp +++ b/titlestate.cpp | |||
| @@ -30,7 +30,9 @@ void TitleState::input(SDLKey key) | |||
| 30 | changeState(new HowToPlayState()); | 30 | changeState(new HowToPlayState()); |
| 31 | 31 | ||
| 32 | break; | 32 | break; |
| 33 | case 2: // Add choose highscore list | 33 | case 2: |
| 34 | changeState(new ChooseHighscoreListState()); | ||
| 35 | |||
| 34 | break; | 36 | break; |
| 35 | case 3: | 37 | case 3: |
| 36 | exit(0); | 38 | exit(0); |
| @@ -45,8 +47,8 @@ void TitleState::render(SDL_Surface* screen) | |||
| 45 | SDL_Rect pSpace; | 47 | SDL_Rect pSpace; |
| 46 | pSpace.x = 136; | 48 | pSpace.x = 136; |
| 47 | pSpace.y = (selection==0?316:(selection==1?350:(selection==2?381:417))); | 49 | pSpace.y = (selection==0?316:(selection==1?350:(selection==2?381:417))); |
| 48 | pSpace.w = screen->w; | 50 | pSpace.w = pointer->w; |
| 49 | pSpace.h = screen->h; | 51 | pSpace.h = pointer->h; |
| 50 | 52 | ||
| 51 | SDL_BlitSurface(pointer, NULL, screen, &pSpace); | 53 | SDL_BlitSurface(pointer, NULL, screen, &pSpace); |
| 52 | } | 54 | } |
