I have a two part question.
Is there a good reason that the SDL_Surface* in SDL_BlitSurface() is not “const”?
Where can I put in a request to make it constant?
I wouldn’t think blitting a surface involves changing the source surface. Not having the “const” keyword destroys const correctness in many use cases, requiring undesired const_casts. Adding const also shouldn’t break any code developed with SDL, only other functions within SDL would need to be updated.
Additionally the destination rect “dstrect” should be const as well, unless its really modified for some reason.