Skip to content

Commit

Permalink
fixed window icon
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 authored and Petr Ohlídal committed Mar 29, 2021
1 parent ac7e469 commit c0d7ca4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/main/AppContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}

Expand Down

0 comments on commit c0d7ca4

Please # to comment.