diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-09-05 19:02:50 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:53 +0100 |
commit | 5038f3c64d97c71d2d1048638fb4bc1a32ad6a31 (patch) | |
tree | 83e83adc72aa99835ac9cbf3b8a7c318a24f1f8b /src/menu | |
parent | a2697363631e3020ddc61d9970849166398383ec (diff) | |
download | usdx-5038f3c64d97c71d2d1048638fb4bc1a32ad6a31.tar.gz usdx-5038f3c64d97c71d2d1048638fb4bc1a32ad6a31.tar.xz usdx-5038f3c64d97c71d2d1048638fb4bc1a32ad6a31.zip |
base/config: add graphics.resolution config option
The resolution could controlled by the appropriate config option. The
value from the config file is parsed/serialized with the
DimensionTranslator.
Diffstat (limited to 'src/menu')
-rw-r--r-- | src/menu/application.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp index 45f7af0e..d0cb9926 100644 --- a/src/menu/application.cpp +++ b/src/menu/application.cpp @@ -41,9 +41,10 @@ namespace usdx : Container(parent), config(NULL), display(NULL), fps_manager(NULL), running(false), frames_per_second(50) { - set_size(800, 600); log4cpp::PropertyConfigurator::configure("log4cpp.property"); config = new Config(); + + set_size(config->get_graphics_resolution()); SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO); } |