Permalink
Browse files

Window icon was ignoring base_path.

  • Loading branch information...
1 parent cf998d4 commit 59d81603a82ac32a2591dac305b509a8278f928e @henriquegemignani henriquegemignani committed Mar 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/ugdk/base/engine.cc
View
4 src/ugdk/base/engine.cc
@@ -39,8 +39,10 @@ bool Engine::Initialize(const Configuration& configuration) {
path_manager_ = new PathManager(configuration.base_path);
resource_manager_ = new base::ResourceManager();
language_manager_ = new LanguageManager(configuration.default_language);
+
+ std::string icon_path = (configuration.window_icon.length() > 0) ? path_manager_->ResolvePath(configuration.window_icon) : "";
- video_manager_->Initialize(configuration.window_title, configuration.window_size, configuration.fullscreen, configuration.window_icon);
+ video_manager_->Initialize(configuration.window_title, configuration.window_size, configuration.fullscreen, icon_path);
audio_manager_->Initialize();
text_manager_->Initialize();

0 comments on commit 59d8160

Please sign in to comment.