Skip to content

Commit

Permalink
Fix sfont warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dogo committed Sep 14, 2024
1 parent 1c306e2 commit 4a14d7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4a14d7f

Please sign in to comment.