hopefully fixed SDL1.2 code?