X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgameconfig.cpp;h=38250118c4702dbd07a7588101411ad4d88ff4b9;hb=0262a9c0ae29d375e8174038d8cc81ebbeb10215;hp=2373d700d04c5a9c1ee0ec7bf6863b3dd4885b87;hpb=f171cfbf82ac235d60cc53d24bf9be6cc5365550;p=supertux.git diff --git a/src/gameconfig.cpp b/src/gameconfig.cpp index 2373d700d..38250118c 100644 --- a/src/gameconfig.cpp +++ b/src/gameconfig.cpp @@ -35,7 +35,9 @@ Config* config = 0; Config::Config() { - use_fullscreen = true; + profile = 1; + use_fullscreen = false; + video = AUTO_VIDEO; try_vsync = true; show_fps = false; sound_enabled = true; @@ -73,7 +75,10 @@ Config::load() const lisp::Lisp* config_video_lisp = config_lisp->get_lisp("video"); if(config_video_lisp) { config_video_lisp->get("fullscreen", use_fullscreen); - config_video_lisp->get("vsync", try_vsync); + std::string video_string; + config_video_lisp->get("video", video_string); + video = get_video_system(video_string); + config_video_lisp->get("vsync", try_vsync); config_video_lisp->get("width", screenwidth); config_video_lisp->get("height", screenheight); config_video_lisp->get("aspect_ratio", aspect_ratio); @@ -104,6 +109,7 @@ Config::save() writer.start_list("video"); writer.write_bool("fullscreen", use_fullscreen); + writer.write_string("video", get_video_string(video)); writer.write_bool("vsync", try_vsync); writer.write_int("width", screenwidth); writer.write_int("height", screenheight);