SDL_ttf: Fixed UV coordinates in the GPU text engine (thanks @captain0xff!)

From cd3cd1628f718b1eb4985efd53a4a36e7dd0da52 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 1 Jan 2025 12:27:27 -0800
Subject: [PATCH] Fixed UV coordinates in the GPU text engine (thanks
 @captain0xff!)

---
 src/SDL_gpu_textengine.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/SDL_gpu_textengine.c b/src/SDL_gpu_textengine.c
index bd9d96a3..2be24495 100644
--- a/src/SDL_gpu_textengine.c
+++ b/src/SDL_gpu_textengine.c
@@ -266,8 +266,8 @@ static AtlasGlyph *CreateGlyph(AtlasTexture *atlas, const stbrp_rect *area)
 
     const float minu = (float)area->x / ATLAS_TEXTURE_SIZE;
     const float minv = (float)area->y / ATLAS_TEXTURE_SIZE;
-    const float maxu = (float)(area->x + area->w) / ATLAS_TEXTURE_SIZE;
-    const float maxv = (float)(area->y + area->h) / ATLAS_TEXTURE_SIZE;
+    const float maxu = (float)(area->x + area->w - 1) / ATLAS_TEXTURE_SIZE;
+    const float maxv = (float)(area->y + area->h - 1) / ATLAS_TEXTURE_SIZE;
     glyph->texcoords[0] = minu;
     glyph->texcoords[1] = minv;
     glyph->texcoords[2] = maxu;