Preserve game aspect ratio when the window is resized