X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fplayer_status.cpp;h=352fac3d5fcce373b2ac52f96aae690d1038c026;hb=c551a7ee31696e62ee6a05d4505ff93cfca24112;hp=8279e17b1d2d9b7962680304f172afbb84facd10;hpb=c0caa810fcbd6f6a09c0078fdf2d30a4a6cb7bc9;p=supertux.git diff --git a/src/player_status.cpp b/src/player_status.cpp index 8279e17b1..352fac3d5 100644 --- a/src/player_status.cpp +++ b/src/player_status.cpp @@ -153,9 +153,9 @@ PlayerStatus::draw(DrawingContext& context) Surface* coin_surf = coin_surface.get(); if (coin_surf) { - context.draw_surface(coin_surf, Vector(SCREEN_WIDTH - BORDER_X - coin_surf->get_width() - gold_text->get_text_width(coins_text), BORDER_Y + 1), LAYER_HUD); + context.draw_surface(coin_surf, Vector(SCREEN_WIDTH - BORDER_X - coin_surf->get_width() - gold_fixed_text->get_text_width(coins_text), BORDER_Y + 1), LAYER_HUD); } - context.draw_text(gold_text, coins_text, Vector(SCREEN_WIDTH - BORDER_X, BORDER_Y), RIGHT_ALLIGN, LAYER_HUD); + context.draw_text(gold_fixed_text, coins_text, Vector(SCREEN_WIDTH - BORDER_X, BORDER_Y), ALIGN_RIGHT, LAYER_HUD); context.pop_transform(); } @@ -168,4 +168,3 @@ PlayerStatus::operator= (const PlayerStatus& other) score_multiplier = other.score_multiplier; max_score_multiplier = other.max_score_multiplier; } -