X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgameconfig.hpp;h=bdf8725eba416facfa323b3bf5685a6f27bac01a;hb=d427db3e7c37d524e540511dd8cfce6e985bf32b;hp=f4cb884c670dfc36ed05a7562cd3c3b1068c5905;hpb=b25f7af383f89c081442725216f2eba38228a5e3;p=supertux.git diff --git a/src/gameconfig.hpp b/src/gameconfig.hpp index f4cb884c6..bdf8725eb 100644 --- a/src/gameconfig.hpp +++ b/src/gameconfig.hpp @@ -19,8 +19,12 @@ #ifndef SUPERTUX_CONFIG_H #define SUPERTUX_CONFIG_H +#include + #include +#include "video/video_systems.hpp" + class Config { public: @@ -30,15 +34,24 @@ public: void load(); void save(); - /** screen width in pixel (warning: this is the real screen width+height, - * you should use the logical SCREEN_WIDTH and SCREEN_HEIGHT for your - * rendering code.) - */ - int screenwidth; - int screenheight; - float aspect_ratio; + int profile; + + // the width/height to be used to display the game in fullscreen + int fullscreen_width; + int fullscreen_height; + + // the width/height of the window managers window + int window_width; + int window_height; + + // the aspect ratio + int aspect_width; + int aspect_height; + + float magnification; bool use_fullscreen; + VideoSystem video; bool try_vsync; bool show_fps; bool sound_enabled; @@ -52,6 +65,8 @@ public: bool enable_script_debugger; std::string start_demo; std::string record_demo; + + std::string locale; /**< force SuperTux language to this locale, e.g. "de". A file "data/locale/xx.po" must exist for this to work. An empty string means autodetect. */ }; extern Config* config;