Fix window resizing for SDL 1.2