You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The comment above SDL_StretchSurface explains that srcrect and dstrect may not be NULL, but the actual implementation has code that handles this situation in a similar fashion to SDL_BlitSurfaceScaled. The comment is correct for SDL2, but the behaviour changed at some point for SDL3.
The docs:
* \param srcrect the SDL_Rect structure representing the rectangle to be
* copied, may not be NULL.
* \param dst the SDL_Surface structure that is the blit target.
* \param dstrect the SDL_Rect structure representing the target rectangle in
* the destination surface, may not be NULL.
The comment above
SDL_StretchSurface
explains thatsrcrect
anddstrect
may not be NULL, but the actual implementation has code that handles this situation in a similar fashion to SDL_BlitSurfaceScaled. The comment is correct for SDL2, but the behaviour changed at some point for SDL3.The docs:
The code (same for both rects):
The text was updated successfully, but these errors were encountered: