Upgrade to SDL2 APIs.