From 4a14d7f1a79c1d3d3ea46ae512de1cd47979a2d7 Mon Sep 17 00:00:00 2001 From: Diogo Autilio Date: Sat, 14 Sep 2024 11:28:34 -0300 Subject: [PATCH] Fix sfont warning --- src/sfont.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sfont.c b/src/sfont.c index 4b08fed..068c0a8 100644 --- a/src/sfont.c +++ b/src/sfont.c @@ -241,6 +241,8 @@ OSL_SFONT *oslLoadSFontFile(char *filename, int pixelFormat) { int letterCount = 0; int x = 0; + sfont->lettersCount = 0; + // Process each column in the PNG image to extract font letters while (x < img->sizeX) { int color = _getPixel(img, x, 0);