diff options
Diffstat (limited to 'src/sdl/draw.c')
| -rw-r--r-- | src/sdl/draw.c | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sdl/draw.c b/src/sdl/draw.c index e275038..99faa19 100644 --- a/src/sdl/draw.c +++ b/src/sdl/draw.c @@ -1,5 +1,6 @@  #include <stdbool.h> // bool  #include <math.h> // sinf() +#include <stdio.h> // snprintf()  #include "util.h" // warn()/die()  #include "color.h" // set_color()  #include "draw.h" @@ -188,10 +189,10 @@ draw_title_text(    char buf[256];    snprintf(      buf, sizeof(buf), -    " %s: %s (#%zu) ", +    " %s: %s (#%d) ",      draw_ctx->level->pack,      draw_ctx->level->name, -    *draw_ctx->level_num +    (int) *draw_ctx->level_num    );    // draw text @@ -216,8 +217,8 @@ draw_moves_text(    char buf[256];    snprintf(      buf, sizeof(buf), -    " Moves: %zu%s ", -    draw_ctx->ctx->num_moves, +    " Moves: %d%s ", +    (int) draw_ctx->ctx->num_moves,      sok_ctx_is_done(draw_ctx->ctx) ? " (Won!)" : ""    );  | 
