Buildfix for new SDL.

Fixes #19839
This commit is contained in:
Henrik Rydgård committed 2025-01-09 20:58:50 +01:00
1 parent 5431bb35fc
commit bd84c7bf7d
1 file changed
+3 -4
+3 -4
View File
@@ -9,8 +9,7 @@
#include <fontconfig/fontconfig.h>
#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<uint32_t, _TTF_Font *> fontMap_;
std::map<uint32_t, TTF_Font *> fontMap_;
std::vector<_TTF_Font *> fallbackFonts_;
std::vector<TTF_Font *> fallbackFonts_;
std::vector<std::pair<std::string, int>> fallbackFontPaths_; // path and font face index
std::map<int, int> glyphFallbackFontIndex_;