From 67127afe3f0c3b923f7c90af25cc92ade83a05a2 Mon Sep 17 00:00:00 2001 From: Arkadiusz Lach Date: Sun, 2 Feb 2025 01:19:39 +0100 Subject: [PATCH] Fix from #12118 --- src/render/SDL_render.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index c777d289b6..869fbabe11 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -4603,6 +4603,7 @@ bool SDL_RenderTexture9GridTiled(SDL_Renderer *renderer, SDL_Texture *texture, c // Lower-right corner curr_src.y = srcrect->y + srcrect->h - bottom_height; + curr_src.h = bottom_height; curr_dst.y = dstrect->y + dstrect->h - dst_bottom_height; curr_dst.h = dst_bottom_height; if (!SDL_RenderTexture(renderer, texture, &curr_src, &curr_dst)) { @@ -4651,6 +4652,7 @@ bool SDL_RenderTexture9GridTiled(SDL_Renderer *renderer, SDL_Texture *texture, c // Bottom curr_src.y = srcrect->y + srcrect->h - bottom_height; + curr_src.h = bottom_height; curr_dst.y = dstrect->y + dstrect->h - dst_bottom_height; curr_dst.h = dst_bottom_height; if (!SDL_RenderTextureTiled(renderer, texture, &curr_src, tileScale, &curr_dst)) {