mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-26 21:18:30 +00:00
Fix from #12118
This commit is contained in:

committed by
Sam Lantinga

parent
e25ee22469
commit
67127afe3f
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user