SDL_Surface flags in SDL 2 migration

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!

Bump. Anyone who can help?

  1. that is now but much changed so you’ll have to read up on blend modes
  2. this is now