Skip to content

Commit

Permalink
OGRE13-SDL: Fixed window appearing on top left with titlebar outside …
Browse files Browse the repository at this point in the history
…of screen.

Deleted the windows-specific code setting ["monitorIndex"]- apparently OGRE does it by itself in `ApplicationContextSDL::createWindow()`, see OgreApplicationContextSDL.cpp line 56.
Original commit: 128a8e2 - "Attempt to fix the 'Rendering Device' setting" - Ulteq, 4 years ago (29.12.2018 13:53:57)

Also deleted setting ["windowProc"] - doesn't seem to have any effect, perhaps an OIS leftover.
  • Loading branch information
ohlidalp committed Feb 5, 2023
1 parent cd302fd commit 5fa4224
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions source/main/AppContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,6 @@ bool AppContext::SetUpRendering()
miscParams["vsync"] = ropts["VSync"].currentValue;
miscParams["gamma"] = ropts["sRGB Gamma Conversion"].currentValue;
miscParams["border"] = "fixed";
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
const auto rd = ropts["Rendering Device"];
const auto it = std::find(rd.possibleValues.begin(), rd.possibleValues.end(), rd.currentValue);
const int idx = std::distance(rd.possibleValues.begin(), it);
miscParams["monitorIndex"] = Ogre::StringConverter::toString(idx);
miscParams["windowProc"] = Ogre::StringConverter::toString((size_t)OgreBites::WindowEventUtilities::_WndProc);
#endif

// Validate rendering resolution
Ogre::uint32 width, height;
Expand Down

0 comments on commit 5fa4224

Please sign in to comment.