X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=score.c;fp=score.c;h=77e8ab35ba8bb503343345da4a355405adf2cfef;hp=5738e72c0a13e6b5a4643bceb375b69cbf528078;hb=45925ff114a17b9c1c0a720ff668e2cb795cd761;hpb=0978da8f14d855eecae9882b559d6e8b0533e78e diff --git a/score.c b/score.c index 5738e72..77e8ab3 100644 --- a/score.c +++ b/score.c @@ -27,6 +27,7 @@ #include "common.h" #include "config.h" #include "file.h" +#include "globals.h" #include "score.h" // High score table @@ -121,11 +122,13 @@ snprintscore(char *s, size_t n, int score) } } -int -snprintscore_line(char *s, size_t n, int score) +void +show_score(void) { - int r = snprintf(s, n, "Time: "); - return r + snprintscore(s+r, n-r, score); + char s[16]; + int r = snprintf(s, 16, "Time: "); + snprintscore(s+r, 16-r, score); + SFont_Write(surf_screen, g_font, XSIZE-250, 0, s); } void