fix setting resolution on startup
Merge pull request #5427 from FernetMenta/fullscreen2

fix setting resolution on startup