SDL_BlitSurface() and SDL_BlitSurfaceScaled() now have a const dstrect parameter

This was originally to avoid duplicating clipping work in Maelstrom on a 486 computer. This has been confusing for users and computers are a little faster these days, so we'll make it work the way people expect.
This commit is contained in:
Sam Lantinga 2024-07-20 15:41:53 -07:00
parent 198caa54a1
commit 67fa7a9138
4 changed files with 19 additions and 30 deletions

View file

@ -1717,6 +1717,8 @@ But if you're migrating your code which uses masks, you probably have a format i
0x0000F800 0x000007E0 0x0000001F 0x00000000 => SDL_PIXELFORMAT_RGB565
```
SDL_BlitSurface() and SDL_BlitSurfaceScaled() now have a const `dstrect` parameter and do not fill it in with the final destination rectangle.
SDL_BlitSurfaceScaled() and SDL_BlitSurfaceUncheckedScaled() now take a scale paramater.
SDL_SoftStretch() now takes a scale paramater.