From 0ad2955cd1888bba63d5c0e8437ba36be2a5bd31 Mon Sep 17 00:00:00 2001 From: tritonas00 Date: Wed, 24 Mar 2021 23:56:49 +0200 Subject: [PATCH] fixed window icon --- source/main/AppContext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/main/AppContext.cpp b/source/main/AppContext.cpp index 5b61309ee6..0b7b7950ce 100644 --- a/source/main/AppContext.cpp +++ b/source/main/AppContext.cpp @@ -313,6 +313,8 @@ bool AppContext::SetUpRendering() "Rigs of Rods version " + Ogre::String (ROR_VERSION_STRING), width, height, ropts["Full Screen"].currentValue == "Yes", &miscParams); OgreBites::WindowEventUtilities::_addRenderWindow(m_render_window); + + this->SetRenderWindowIcon(m_render_window); m_render_window->setActive(true); // Create viewport (without camera) @@ -329,7 +331,6 @@ Ogre::RenderWindow* AppContext::CreateCustomRenderWindow(std::string const& wind misc["FSAA"] = Ogre::StringConverter::parseInt(ropts["FSAA"].currentValue, 0); Ogre::RenderWindow* rw = Ogre::Root::getSingleton().createRenderWindow(window_name, width, height, false, &misc); - this->SetRenderWindowIcon(rw); return rw; }