aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/debug.c b/src/debug.c
index dc06c51..b87aa31 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -147,16 +147,16 @@ static bool debug_print(struct pw_debug *debug, float x, float y,
SDL_FRect dst = {x * sx, y * sy, src.w * sx, src.h * sy};
for (int i = 0; i < n; i++) {
uint8_t c = (uint8_t)text[i];
- uint8_t i = c % 32;
- uint8_t j = c / 32;
- src.x = (float)(i * 4);
- src.y = (float)(j * 8);
+ uint8_t ci = c % 32;
+ uint8_t cj = c / 32;
+ src.x = (float)(ci * 4);
+ src.y = (float)(cj * 8);
ok = ok && SDL_RenderTexture(renderer, debug->font, &src, &dst);
dst.x += dst.w;
}
SDL_free(text);
- return true;
+ return ok;
}
bool pw_debug_render(struct pw_debug *debug) {