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:
parent
f50d234774
commit
325aef0a1b
1 changed files with 4 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue