Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Nov 16, 2024
1 parent 10d6e68 commit 9ee8e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fntsys.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ static int fntLoadDefaultInternal(char *path, int fontSize, int slot)
WaitSema(gFontSemaId);
memcpy(&oldFont, &fonts[slot], sizeof(font_t));
memcpy(&fonts[slot], &newFont, sizeof(font_t));
SignalSema(gFontSemaId);

// delete the old font
fntDeleteSlot(&oldFont);
SignalSema(gFontSemaId);

return 0;
}
Expand Down

0 comments on commit 9ee8e48

Please sign in to comment.