From 5ae1308e5b49fdcb2e43a29c843faf0113e41f39 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 3 Apr 2026 01:32:09 -0700 Subject: [PATCH] Use the correct source rectangle when doing scaled blits Fixes https://github.com/libsdl-org/SDL/issues/15309 --- src/video/SDL_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index d96dc7fb4e..8164f76fbc 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -2326,7 +2326,7 @@ SDL_Surface *SDL_ConvertSurfaceRect(SDL_Surface *surface, const SDL_Rect *rect, return NULL; } - return SDL_ConvertSurfaceRectAndColorspace(surface, NULL, format, NULL, SDL_GetDefaultColorspaceForFormat(format), surface->props); + return SDL_ConvertSurfaceRectAndColorspace(surface, rect, format, NULL, SDL_GetDefaultColorspaceForFormat(format), surface->props); } SDL_Surface *SDL_ConvertSurface(SDL_Surface *surface, SDL_PixelFormat format)