X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgameloop.cpp;h=60aa305615d5ef908d9c42cca550ac8c32066e04;hb=e2fe84bf2b0bbaff9e9ea639b358371cf71d265a;hp=790b8afdb0d9a510addb5abc6fe53e1a44928ffe;hpb=26b50b87eaed9d2c3581db47865ab6dccf84b355;p=supertux.git diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 790b8afdb..60aa30561 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -522,6 +522,18 @@ GameSession::draw() Color(rand() % 50, rand() % 50, rand() % 50, 128), LAYER_FOREGROUND1); context->draw_text_center(blue_text, _("PAUSE - Press 'P' To Play"), Vector(0, 230), LAYER_FOREGROUND1+2); + + char str1[60]; + char str2[124]; + sprintf(str1, _("Playing: ")); + sprintf(str2, level->name.c_str()); + + context->draw_text(blue_text, str1, + Vector((screen->w - (blue_text->get_text_width(str1) + white_text->get_text_width(str2)))/2, 340), + LAYER_FOREGROUND1+2); + context->draw_text(white_text, str2, + Vector(((screen->w - (blue_text->get_text_width(str1) + white_text->get_text_width(str2)))/2)+blue_text->get_text_width(str1), 340), + LAYER_FOREGROUND1+2); } if(Menu::current()) @@ -746,14 +758,6 @@ GameSession::drawstatus(DrawingContext& context) Vector(screen->w - white_text->get_text_width(_("LIVES")) - white_text->get_text_width(" 99"), 20), LAYER_FOREGROUND1); - if(game_pause) - { - sprintf(str, _("Playing: %s"), level->name.c_str()); - - context.draw_text(white_text, str, Vector(0,20), - LAYER_FOREGROUND1); - } - if(show_fps) { sprintf(str, "%2.1f", fps_fps);