Config::Config()
{
use_fullscreen = true;
+ try_vsync = true;
show_fps = false;
sound_enabled = true;
music_enabled = true;
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);
config_video_lisp->get("width", screenwidth);
config_video_lisp->get("height", screenheight);
config_video_lisp->get("aspect_ratio", aspect_ratio);
writer.start_list("video");
writer.write_bool("fullscreen", use_fullscreen);
+ writer.write_bool("vsync", try_vsync);
writer.write_int("width", screenwidth);
writer.write_int("height", screenheight);
writer.write_float("aspect_ratio", aspect_ratio);