Skip to content

Commit df1c903

Browse files
committed
ptsize is a float in TTF_OpenFontIO in SDL3_ttf
1 parent 975d99c commit df1c903

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Backend/Font/SDL_ttf/BackendFontSDLttf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ namespace tgui
368368
if (!handle)
369369
return nullptr;
370370

371-
auto font = TTF_OpenFontIO(handle, true, static_cast<int>(scaledTextSize));
371+
auto font = TTF_OpenFontIO(handle, true, static_cast<float>(scaledTextSize));
372372
#else
373373
SDL_RWops* handle = SDL_RWFromConstMem(m_fileContents.get(), static_cast<int>(m_fileSize));
374374
if (!handle)

0 commit comments

Comments
 (0)