Created by: vlag
Since SDL2 is now RC and its API shouldn't change, we can envisage Solarus to support both 1.2 and 2.0 versions.
The migration guide ( http://wiki.libsdl.org/moin.fcg/MigrationGuide ) well explain all differences, and better, it provides at the final paragraph a header file which will allows to use pretty much the same code for both version. The "only" exception is that blitting from a hardware surface to another one will result in a no-op under SDL2.
Benefits for this port will be blitting with bilinear interpolation and with floatting ratio ( http://wiki.libsdl.org/moin.fcg/SDL_RenderCopy?highlight=%28%5CbCategoryAPI%5Cb%29%7C%28SDLFunctionTemplate%29 ), useful for example on OSX to make fullscreen modes fill the entiere screen (or rather with a maximum of 2 black bars) when lower resolution are not supported by the hardware. But the most interesting benefits is that it will allow the iOS port :)
Note that some Solarus features are directly implemented in SDL2, SDL_GetClosestDisplayMode() for example.