Sfoglia il codice sorgente

`LoadFontDefault()`: Initialize glyphs and recs to zero #4319

pull/4340/head
Ray 1 anno fa
parent
commit
1eb8ff5e54
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      src/rtext.c

+ 2
- 2
src/rtext.c Vedi File

@ -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.glyphCounto">*sizeof(GlyphInfo));
defaultFont.recs = (Rectangle *)RL_MALLOC(defaultFont.glyphCounto">*sizeof(Rectangle));
defaultFont.glyphs = (GlyphInfo *)RL_CALLOC(defaultFont.glyphCountp">, sizeof(GlyphInfo));
defaultFont.recs = (Rectangle *)RL_CALLOC(defaultFont.glyphCountp">, sizeof(Rectangle));
int currentLine = 0;
int currentPosX = charsDivisor;

Caricamento…
Annulla
Salva