From 5038f3c64d97c71d2d1048638fb4bc1a32ad6a31 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 5 Sep 2012 19:02:50 +0200 Subject: 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. --- src/menu/application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/menu') 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); } -- cgit v1.2.3