Migration Guide lacks SDL1 flags

Hi all.

New to SDL (either version) and I’m trying to convert AGAR (GUI) from SDL1.2 to SDL2.

The main dependencies that are causing an issue are the flags for various structures/calls.

SDL1                           SDL2
SDL_SRCCOLORKEY                SDL_GetColorKey()
SDL_SRCALPHA                   SDL_GetSurfaceAlphaMod() or SDL_ISPIXELFORMAT_ALPHA ???
SDL_RESIZABLE                  SDL_WINDOW_RESIZABLE
SDL_FULLSCREEN                 SDL_WINDOW_FULLSCREEN
SDL_NOFRAME                    SDL_WINDOW_BORDERLESS
SDL_DOUBLEBUF                  SDL_RENDERER_PRESENTVSYNC 
SDL_ASYNCBLIT                  ???
SDL_ANYFORMAT                  not really relevant anymore???
SDL_HWPALETTE                  not really relevant anymore???
SDL_OPENGL                     ???
SDL_OPENGLBLIT                 ???
SDL_HWSURFACE                  ???

Any tips regarding ??? would be appreciated

other related topics:

https://discourse.libsdl.org/t/migrating-from-sdl-1-2-to-sdl2-some-problems/21766

https://discourse.libsdl.org/t/sdl-1-2-to-sdl2-sdl-srccolorkey-sdl-srcalpha/24694/3

SDL_ASYNCBLIT
SDL 2 uses backbuffering, so this is obsolete: SDL_RenderPresent

SDL_ANYFORMAT
SDL_GetClosestDisplayMode

SDL_OPENGL
SDL_GL_CreateContext to create an OpenGL context. More GL functions available.

SDL_OPENGLBLIT
Obsolete due to above functions.

SDL_HWSURFACE
All textures are now hardware accelerated, (unless you’re in software mode). Quote: you almost always get hardware acceleration now, and the API has changed to reflect this.

SDL_WINDOW_OPENGL as a flag for SDL_CreateWindow() is also needed (and probably the closest equivalent to SDL1’s SDL_OPENGL)

Ooops, missed that. Sorry. :slight_smile: