X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgameconfig.cpp;h=43f2ce0a0932ff8851be67f73f1d595990a13354;hb=ecb5b95cae951c0dddc73c4ec76bbbc328d17d4a;hp=9c95946cdced16f6a020c895c12e4319e662fb14;hpb=959f514b78262ae6b276821bc61864fa6967b97c;p=supertux.git diff --git a/src/gameconfig.cpp b/src/gameconfig.cpp index 9c95946cd..43f2ce0a0 100644 --- a/src/gameconfig.cpp +++ b/src/gameconfig.cpp @@ -44,6 +44,8 @@ Config::Config() screenwidth = 800; screenheight = 600; + aspectwidth = 4; + aspectheight = 3; enable_script_debugger = false; } @@ -70,6 +72,8 @@ Config::load() config_video_lisp->get("fullscreen", use_fullscreen); config_video_lisp->get("width", screenwidth); config_video_lisp->get("height", screenheight); + config_video_lisp->get("aspectwidth", aspectwidth); + config_video_lisp->get("aspectheight", aspectheight); } const lisp::Lisp* config_audio_lisp = config_lisp->get_lisp("audio"); @@ -98,6 +102,8 @@ Config::save() writer.write_bool("fullscreen", use_fullscreen); writer.write_int("width", screenwidth); writer.write_int("height", screenheight); + writer.write_int("aspectwidth", aspectwidth); + writer.write_int("aspectheight", aspectheight); writer.end_list("video"); writer.start_list("audio");