From bd84c7bf7dcefc991aa2af14ca1f42f2c842c54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 9 Jan 2025 20:58:50 +0100 Subject: [PATCH] Buildfix for new SDL. Fixes #19839 --- Common/Render/Text/draw_text_sdl.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Common/Render/Text/draw_text_sdl.h b/Common/Render/Text/draw_text_sdl.h index 267028638f..7e0ddd9b42 100644 --- a/Common/Render/Text/draw_text_sdl.h +++ b/Common/Render/Text/draw_text_sdl.h @@ -9,8 +9,7 @@ #include #endif -// SDL2_ttf's TTF_Font is a typedef of _TTF_Font. -struct _TTF_Font; +struct TTF_Font; class TextDrawerSDL : public TextDrawer { public: @@ -32,9 +31,9 @@ private: uint32_t CheckMissingGlyph(std::string_view text); int FindFallbackFonts(uint32_t missingGlyph, int ptSize); - std::map fontMap_; + std::map fontMap_; - std::vector<_TTF_Font *> fallbackFonts_; + std::vector fallbackFonts_; std::vector> fallbackFontPaths_; // path and font face index std::map glyphFallbackFontIndex_;