upgraded from SDL1.2 to SDL2.0