convert sdl coords to our coords