From fd207ecd734b13abe982568c6ab3dc9d843aa24a Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 26 Sep 2024 23:11:30 +0300
Subject: [PATCH] showrtf.c: update after SDL_ttf latest api changes.
---
examples/showrtf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/showrtf.c b/examples/showrtf.c
index ee4405c..c5ba9fd 100644
--- a/examples/showrtf.c
+++ b/examples/showrtf.c
@@ -147,7 +147,7 @@ static SDL_Texture * SDLCALL RenderText(void *_font, SDL_Renderer *renderer, con
{
TTF_Font *font = (TTF_Font *)_font;
SDL_Texture *texture = NULL;
- SDL_Surface *surface = TTF_RenderUTF8_Blended(font, text, fg);
+ SDL_Surface *surface = TTF_RenderText_Blended(font, text, 0, fg);
if (surface) {
texture = SDL_CreateTextureFromSurface(renderer, surface);
SDL_DestroySurface(surface);