From 353560a2829fb9b1d9d26121658ce83589c4f5ef Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 22 Aug 2007 09:05:24 +0000 Subject: Added close button and item shortcut backgrounds to files that will be installed. --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 5b7737d9..e179fd32 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -301,6 +301,7 @@ void init_engine(const Options &options) bpp << " video mode: " << SDL_GetError() << std::endl; exit(1); } + // Initialize for drawing graphics->_beginDraw(); @@ -324,14 +325,16 @@ void init_engine(const Options &options) logger->log("Warning: %s", err); } - //Initialize keyboard + // Initialize keyboard keyboard.init(); } /** Clear the engine */ void exit_engine() { + // Before config.write() since it writes the shortcuts to the config delete itemShortcut; + config.write(); delete gui; -- cgit v1.2.3-70-g09d2