Removed a call to set_resolution

I it doesn't seem to be necessary anymore. Don't know about the rest
This commit is contained in:
Charles Dang 2016-11-21 01:05:52 +11:00
parent f50d234774
commit 325aef0a1b

View file

@ -459,12 +459,10 @@ static void do_preferences_dialog(CVideo& video, const config& game_config)
*/
const SDL_Rect rect = screen_area();
video.set_resolution(rect.w, rect.h);
gui2::settings::gamemap_width += rect.w - gui2::settings::screen_width ;
gui2::settings::gamemap_height += rect.h - gui2::settings::screen_height ;
gui2::settings::screen_width = rect.w;
gui2::settings::screen_height = rect.h;
gui2::settings::gamemap_width += rect.w - gui2::settings::screen_width;
gui2::settings::gamemap_height += rect.h - gui2::settings::screen_height;
gui2::settings::screen_width = rect.w;
gui2::settings::screen_height = rect.h;
}
static void enter_lobby_mode(CVideo& video, const config& game_config,