Use resolution detection function at startup

It was previously used only for the resolution selection dialog.
Merge branch 'master' of github.com:wesnoth/wesnoth