X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fstatistics.cpp;h=44c6bf027b8cbcaa167cbba34029b2b3f6cb72e6;hb=ff21ef0e91214397e7925a87c2e5142f564dab08;hp=dc3e83a2e9e351cef0ae87bdddb50d1406b1d456;hpb=ef57479f613b900b73eba8e8f4d026aae0de25cc;p=supertux.git diff --git a/src/statistics.cpp b/src/statistics.cpp index dc3e83a2e..44c6bf027 100644 --- a/src/statistics.cpp +++ b/src/statistics.cpp @@ -19,12 +19,12 @@ #include -#include "video/drawing_context.h" -#include "app/gettext.h" -#include "app/globals.h" -#include "lisp/lisp.h" -#include "resources.h" -#include "statistics.h" +#include "video/drawing_context.hpp" +#include "gettext.hpp" +#include "lisp/lisp.hpp" +#include "resources.hpp" +#include "main.hpp" +#include "statistics.hpp" Statistics global_stats; @@ -161,12 +161,12 @@ Statistics::draw_message_info(DrawingContext& context, std::string title) if(stats[SCORE_STAT][SPLAYER] == -1) // not initialized yet return; - context.draw_text(gold_text, title, Vector(screen->w/2, 410), CENTER_ALLIGN, LAYER_GUI); + context.draw_text(gold_text, title, Vector(SCREEN_WIDTH/2, 410), CENTER_ALLIGN, LAYER_GUI); char str[128]; sprintf(str, _( "Max score: %d"), stats[SCORE_STAT][SPLAYER]); - context.draw_text(white_text, str, Vector(screen->w/2, 450), CENTER_ALLIGN, LAYER_GUI); + context.draw_text(white_text, str, Vector(SCREEN_WIDTH/2, 450), CENTER_ALLIGN, LAYER_GUI); for(int i = 1; i < NUM_STATS; i++) { @@ -184,7 +184,7 @@ Statistics::draw_message_info(DrawingContext& context, std::string title) stats[TIME_NEEDED_STAT][STOTAL]); - context.draw_text(white_small_text, str, Vector(screen->w/2, 462 + i*18), CENTER_ALLIGN, LAYER_GUI); + context.draw_text(white_small_text, str, Vector(SCREEN_WIDTH/2, 462 + i*18), CENTER_ALLIGN, LAYER_GUI); } }