I’m trying to port some old 1.2-based codebase to SDL2 and I have a bunch of occurrences of:
surface->flags & SDL_SRCALPHA
In both cases these are SDL_Surface. The first example fails because SDL_SRCALPHA is no longer defined and the second example fails because SDL_Surface->format has no colorkey nor colorKey.
I couldn’t find any examples of this in the migration guide, so any help would be greatly appreciated!