From 49900856bece81481a56888b7bbce45bf746c422 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 22 Jun 2009 10:02:20 -0400 Subject: Added Choose Highscore List state Refs #104 --- titlestate.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'titlestate.cpp') 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) changeState(new HowToPlayState()); break; - case 2: // Add choose highscore list + case 2: + changeState(new ChooseHighscoreListState()); + break; case 3: exit(0); @@ -45,8 +47,8 @@ void TitleState::render(SDL_Surface* screen) SDL_Rect pSpace; pSpace.x = 136; pSpace.y = (selection==0?316:(selection==1?350:(selection==2?381:417))); - pSpace.w = screen->w; - pSpace.h = screen->h; + pSpace.w = pointer->w; + pSpace.h = pointer->h; SDL_BlitSurface(pointer, NULL, screen, &pSpace); } -- cgit 1.4.1