From 1948f076bd656b79d45f25f8798d7a5ce2258b68 Mon Sep 17 00:00:00 2001
From: captain0xff <[EMAIL REDACTED]>
Date: Wed, 2 Oct 2024 02:39:31 +0530
Subject: [PATCH] TTF_Draw* functions should return true on success
---
src/SDL_renderer_textengine.c | 2 +-
src/SDL_surface_textengine.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/SDL_renderer_textengine.c b/src/SDL_renderer_textengine.c
index 1eb6c907..e0ff1c39 100644
--- a/src/SDL_renderer_textengine.c
+++ b/src/SDL_renderer_textengine.c
@@ -877,7 +877,7 @@ bool TTF_DrawRendererText(TTF_Text *text, float x, float y)
sequence = sequence->next;
}
- return false;
+ return true;
}
void TTF_DestroyRendererTextEngine(TTF_TextEngine *engine)
diff --git a/src/SDL_surface_textengine.c b/src/SDL_surface_textengine.c
index d5c6135b..df4f0212 100644
--- a/src/SDL_surface_textengine.c
+++ b/src/SDL_surface_textengine.c
@@ -353,7 +353,7 @@ bool TTF_DrawSurfaceText(TTF_Text *text, int x, int y, SDL_Surface *surface)
break;
}
}
- return false;
+ return true;
}
void TTF_DestroySurfaceTextEngine(TTF_TextEngine *engine)