diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-01-14 23:07:35 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-01-14 23:07:35 -0500 |
commit | 7fdd6f36c8181115c60b781dc97b71107fb7da65 (patch) | |
tree | 1a04507fdd687ed569da4e21fc8a998cdeb29e53 /src/sdl/draw.c | |
parent | d805435f185c0f00b53d3be17707a41aba14373c (diff) | |
download | sok-7fdd6f36c8181115c60b781dc97b71107fb7da65.tar.bz2 sok-7fdd6f36c8181115c60b781dc97b71107fb7da65.zip |
s/%zu/%d ... (int)/
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!)" : "" ); |