{
char str[80];
- texture_type bkgd;
+ Surface* bkgd;
SDL_Event event;
FILE * fi;
-
- texture_load(&bkgd, datadir + "/images/highscore/highscore.png", IGNORE_ALPHA);
+ bkgd = new Surface(datadir + "/images/highscore/highscore.png", IGNORE_ALPHA);
hs_score = score;
show_menu = 1;
while(show_menu)
{
- texture_draw_bg(&bkgd, NO_UPDATE);
+ bkgd->draw_bg();
- text_drawf(&blue_text, "Congratulations", 0, 130, A_HMIDDLE, A_TOP, 2, NO_UPDATE);
- text_draw(&blue_text, "Your score:", 150, 180, 1, NO_UPDATE);
+ blue_text->drawf("Congratulations", 0, 130, A_HMIDDLE, A_TOP, 2, NO_UPDATE);
+ blue_text->draw("Your score:", 150, 180, 1, NO_UPDATE);
sprintf(str, "%d", hs_score);
- text_draw(&yellow_nums, str, 350, 170, 1, NO_UPDATE);
+ yellow_nums->draw(str, 350, 170, 1, NO_UPDATE);
menu_process_current();
flipscreen();
while(SDL_PollEvent(&event))
if(event.type == SDL_KEYDOWN)
- menu_event(event);
+ current_menu->event(event);
switch (highscore_menu->check())
{