Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Nov 16, 2024
1 parent eb47a82 commit 328fa5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fntsys.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ void fntInit()
for (; i < FNT_MAX_COUNT; ++i)
fntInitSlot(&fonts[i]);

fntLoadDefaultInternal(NULL, 12, FNT_DEFAULT); //FNTSYS_DEFAULT_SIZE
//fntLoadDefaultInternal(NULL, 12, 1);
fntLoadDefaultInternal(NULL, FNTSYS_DEFAULT_SIZE, FNT_DEFAULT);
fntLoadDefaultInternal(NULL, 12, 1);
}

int fntLoadFile(char *path, int fontSize)
Expand Down Expand Up @@ -316,6 +316,8 @@ static int fntLoadDefaultInternal(char *path, int fontSize, int slot)
return FNT_ERROR;
}

memset(newFont, 0, sizeof(newFont));

if (fntLoadSlot(&newFont, path, fontSize) != FNT_ERROR) {
// copy over the new font definition
// we have to lock this phase, as the old font may still be used
Expand Down

0 comments on commit 328fa5e

Please sign in to comment.