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 1ec10a0 commit 4bc0e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fntsys.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ int fntLoadDefaultInternal(char *path, int fontSize, int fontID)
// we have to lock this phase, as the old font may still be used
// Note: No check for concurrency is done here, which is kinda funky!
WaitSema(gFontSemaId);
if (fontId == FNT_DEFAULT) {
if (fontID == FNT_DEFAULT) {
memcpy(&oldFont, &fonts[FNT_DEFAULT], sizeof(font_t));
memcpy(&fonts[FNT_DEFAULT], &newFont, sizeof(font_t));
} else if (fontId == 1) {
} else if (fontID == 1) {
memcpy(&oldFont, &fonts[1], sizeof(font_t));
memcpy(&fonts[1], &newFont, sizeof(font_t));
}
Expand Down

0 comments on commit 4bc0e00

Please sign in to comment.