Skip to content

Commit

Permalink
TTF_GetFontStyle now returns TTF_FontStyleFlags instead of int in SDL…
Browse files Browse the repository at this point in the history
…_ttf 3
  • Loading branch information
texus committed Dec 28, 2024
1 parent 52a847d commit 8b2b539
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Backend/Font/SDL_ttf/BackendFontSDLttf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,11 @@ namespace tgui
return {0, 0};

// Temporarily set the underline style
#if TGUI_USE_SDL3
const TTF_FontStyleFlags oldFontStyle = TTF_GetFontStyle(font);
#else
const int oldFontStyle = TTF_GetFontStyle(font);
#endif
TTF_SetFontStyle(font, TTF_STYLE_UNDERLINE);

int offset = 0;
Expand Down

0 comments on commit 8b2b539

Please sign in to comment.