Fix resolution with sdl to current window resolution
and calculate 2d to 3d projection to line correctly