Skip to content

Commit 9067db8

Browse files
committed
Switch to UTF-8 for overlay text rendering
1 parent 177f845 commit 9067db8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/streaming/video/overlaymanager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ SDL_Surface* OverlayManager::RenderTextOutlinedWrapped(TTF_Font* font, const cha
174174
// Draw text twice, but outline is a bit bigger
175175
int oldOutline = TTF_GetFontOutline(font);
176176
TTF_SetFontOutline(font, outlineWidth);
177-
auto outlineSurface = TTF_RenderText_Blended_Wrapped(font, text, outlineColor, wrapWidth);
177+
auto outlineSurface = TTF_RenderUTF8_Blended_Wrapped(font, text, outlineColor, wrapWidth);
178178
TTF_SetFontOutline(font, 0);
179-
auto textSurface = TTF_RenderText_Blended_Wrapped(font, text, textColor, wrapWidth);
179+
auto textSurface = TTF_RenderUTF8_Blended_Wrapped(font, text, textColor, wrapWidth);
180180
TTF_SetFontOutline(font, oldOutline);
181181

182182
if (outlineSurface == nullptr || textSurface == nullptr) {

0 commit comments

Comments
 (0)