From: Ingo Ruhnke Date: Sun, 25 Apr 2004 13:16:43 +0000 (+0000) Subject: - improved look of start/gameover screens X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b8780990aa3c3936a69547296b930a6f5aaf74b8;p=supertux.git - improved look of start/gameover screens SVN-Revision: 701 --- diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 5c3340676..685eef3ac 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -145,8 +145,11 @@ GameSession::levelintro(void) music_manager->halt_music(); char str[60]; - /* Level Intro: */ - clearscreen(0, 0, 0); + + if (get_level()->img_bkgd) + get_level()->img_bkgd->draw(0, 0); + else + clearscreen(0, 0, 0); sprintf(str, "%s", world->get_level()->name.c_str()); gold_text->drawf(str, 0, 200, A_HMIDDLE, A_TOP, 1); @@ -657,7 +660,10 @@ GameSession::drawendscreen() { char str[80]; - clearscreen(0, 0, 0); + if (get_level()->img_bkgd) + get_level()->img_bkgd->draw(0, 0); + else + clearscreen(0, 0, 0); blue_text->drawf("GAMEOVER", 0, 200, A_HMIDDLE, A_TOP, 1); @@ -678,7 +684,10 @@ GameSession::drawresultscreen(void) { char str[80]; - clearscreen(0, 0, 0); + if (get_level()->img_bkgd) + get_level()->img_bkgd->draw(0, 0); + else + clearscreen(0, 0, 0); blue_text->drawf("Result:", 0, 200, A_HMIDDLE, A_TOP, 1);