Fixed SDL implementation.