X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmainloop.cpp;h=08525fa4fae616cc00b12e1583560bb4c706000d;hb=9355ee0bb2a3cee71f3f9216c937da587f475f61;hp=1a7a1324aba55952c3514aa2113139d92a5eb777;hpb=d83146487eca3bb987302662f9acd0af13572ce5;p=supertux.git diff --git a/src/mainloop.cpp b/src/mainloop.cpp index 1a7a1324a..08525fa4f 100644 --- a/src/mainloop.cpp +++ b/src/mainloop.cpp @@ -124,8 +124,8 @@ MainLoop::draw_fps(DrawingContext& context, float fps_fps) char str[60]; snprintf(str, sizeof(str), "%3.1f", fps_fps); const char* fpstext = "FPS"; - context.draw_text(white_text, fpstext, Vector(SCREEN_WIDTH - white_text->get_text_width(fpstext) - gold_text->get_text_width(" 99999") - BORDER_X, BORDER_Y + 20), ALIGN_LEFT, LAYER_HUD); - context.draw_text(gold_text, str, Vector(SCREEN_WIDTH - BORDER_X, BORDER_Y + 20), ALIGN_RIGHT, LAYER_HUD); + context.draw_text(small_font, fpstext, Vector(SCREEN_WIDTH - small_font->get_text_width(fpstext) - small_font->get_text_width(" 99999") - BORDER_X, BORDER_Y + 20), ALIGN_LEFT, LAYER_HUD); + context.draw_text(small_font, str, Vector(SCREEN_WIDTH - BORDER_X, BORDER_Y + 20), ALIGN_RIGHT, LAYER_HUD); } void