main: autodetect resolution using SDL_SetVideoMode with w/h = 0

This is an initial attempt to use SDL_SetVideoMode with w and h set to 0 to autodetect the native screen resolution.