projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial integration, lots of broken stuff
[supertux.git]
/
src
/
gameconfig.cpp
diff --git
a/src/gameconfig.cpp
b/src/gameconfig.cpp
index
2373d70
..
4972804
100644
(file)
--- a/
src/gameconfig.cpp
+++ b/
src/gameconfig.cpp
@@
-36,6
+36,8
@@
Config* config = 0;
Config::Config()
{
use_fullscreen = true;
Config::Config()
{
use_fullscreen = true;
+ //video = AUTO_VIDEO;
+ video = "auto";
try_vsync = true;
show_fps = false;
sound_enabled = true;
try_vsync = true;
show_fps = false;
sound_enabled = true;
@@
-73,7
+75,11
@@
Config::load()
const lisp::Lisp* config_video_lisp = config_lisp->get_lisp("video");
if(config_video_lisp) {
config_video_lisp->get("fullscreen", use_fullscreen);
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("video", video);
+ 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);
config_video_lisp->get("width", screenwidth);
config_video_lisp->get("height", screenheight);
config_video_lisp->get("aspect_ratio", aspect_ratio);
@@
-104,6
+110,8
@@
Config::save()
writer.start_list("video");
writer.write_bool("fullscreen", use_fullscreen);
writer.start_list("video");
writer.write_bool("fullscreen", use_fullscreen);
+ //writer.write_string("video", get_video_string(video));
+ writer.write_string("video", video);
writer.write_bool("vsync", try_vsync);
writer.write_int("width", screenwidth);
writer.write_int("height", screenheight);
writer.write_bool("vsync", try_vsync);
writer.write_int("width", screenwidth);
writer.write_int("height", screenheight);