mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-07 23:17:39 +00:00
LoadFontDefault(): Initialize glyphs and recs to zero #4319
This commit is contained in:
parent
7d3f04ca35
commit
1eb8ff5e54
@ -260,8 +260,8 @@ extern void LoadFontDefault(void)
|
||||
|
||||
// Allocate space for our characters info data
|
||||
// NOTE: This memory must be freed at end! --> Done by CloseWindow()
|
||||
defaultFont.glyphs = (GlyphInfo *)RL_MALLOC(defaultFont.glyphCount*sizeof(GlyphInfo));
|
||||
defaultFont.recs = (Rectangle *)RL_MALLOC(defaultFont.glyphCount*sizeof(Rectangle));
|
||||
defaultFont.glyphs = (GlyphInfo *)RL_CALLOC(defaultFont.glyphCount, sizeof(GlyphInfo));
|
||||
defaultFont.recs = (Rectangle *)RL_CALLOC(defaultFont.glyphCount, sizeof(Rectangle));
|
||||
|
||||
int currentLine = 0;
|
||||
int currentPosX = charsDivisor;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user