SDL 1.2 fix