int SDL_BlitSurface(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect);
Why are the srcrect and dstrect arguments not const? Are they modified in the function? At the moment I’m const-casting my Sprite class member variables to use BlitSurface… It seems silly.
The documentation specifies that
dstrect, if non-NULL, is modified to contain the resulting clipped rectangle.srcrectis not modified, so it very well could be madeconst. Why? Who knows. I’d guess that it was probably an oversight by the people who wrote SDL.