aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/application.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-09-05 19:02:50 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:40:53 +0100
commit5038f3c64d97c71d2d1048638fb4bc1a32ad6a31 (patch)
tree83e83adc72aa99835ac9cbf3b8a7c318a24f1f8b /src/menu/application.cpp
parenta2697363631e3020ddc61d9970849166398383ec (diff)
downloadusdx-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 '')
-rw-r--r--src/menu/application.cpp3
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);
}