Skip to content

Commit

Permalink
Change TTF_GlyphIsProvided() public prototype: remove const attribute
Browse files Browse the repository at this point in the history
Checking whether a glyph is provided modifies the internal cache index,
so remove the const attribute.
  • Loading branch information
1bsyl committed Jan 31, 2019
1 parent 31589bd commit cc44108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SDL_ttf.c
Expand Up @@ -2321,7 +2321,7 @@ char* TTF_FontFaceStyleName(const TTF_Font *font)
return font->face->style_name;
}

int TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch)
int TTF_GlyphIsProvided(TTF_Font *font, Uint16 ch)
{
return (int)get_char_index(font, ch);
}
Expand Down
2 changes: 1 addition & 1 deletion SDL_ttf.h
Expand Up @@ -158,7 +158,7 @@ extern DECLSPEC char * SDLCALL TTF_FontFaceFamilyName(const TTF_Font *font);
extern DECLSPEC char * SDLCALL TTF_FontFaceStyleName(const TTF_Font *font);

/* Check wether a glyph is provided by the font or not */
extern DECLSPEC int SDLCALL TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch);
extern DECLSPEC int SDLCALL TTF_GlyphIsProvided(TTF_Font *font, Uint16 ch);

/* Get the metrics (dimensions) of a glyph
To understand what these metrics mean, here is a useful link:
Expand Down

0 comments on commit cc44108

Please sign in to comment.