Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed May 23, 2024
1 parent 0da3f76 commit ec5c4c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RFont.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ RFont_font* RFont_font_init(const char* font_name) {
char* ttf_buffer = (char*)malloc(sizeof(char) * size);
fseek(ttf_file, 0U, SEEK_SET);

fread(ttf_buffer, 1, size, ttf_file);
RFONT_UNUSED( fread(ttf_buffer, 1, size, ttf_file) )


return RFont_font_init_data((u8*)ttf_buffer, 1);
Expand Down Expand Up @@ -589,7 +589,7 @@ RFont_glyph RFont_font_add_char(RFont_font* font, char ch, size_t size) {

font->glyph_len++;

i32 x0, y0, x1, y1, w, h;
i32 x0, y0, x1, y1, w = 0, h = 0;
if (stbtt_GetGlyphBox(&font->info, glyph->src, &x0, &y0, &x1, &y1) == 0)
return (RFont_glyph){0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

Expand Down

0 comments on commit ec5c4c3

Please sign in to comment.