sdl: proper resizing