From d362110648df6355a47fc804de248f75330c0283 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Wed, 18 Apr 2018 15:17:36 +0900 Subject: [PATCH] Avoid awkward clipping by always overrunning a bit --- lib/sdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sdf.c b/lib/sdf.c index df4d2e79..d831923f 100644 --- a/lib/sdf.c +++ b/lib/sdf.c @@ -148,7 +148,7 @@ static int draw_sdf_character(gfx_context_t * ctx, int32_t x, int32_t y, int ch, /* ignore size */ for (int j = 0; j < height; ++j) { - for (int i = 0; i < width; ++i) { + for (int i = 0; i < size; ++i) { /* TODO needs to do bilinear filter */ if (fx+i > tmp->width) continue; if (fy+j > tmp->height) continue;