Ported to SDL 2.0.