mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Use settings values for Video settings
* Convert window mode, vsync mode into enums, screenshot type into a struct. * Add missing doc for screenshot type.
This commit is contained in:
parent
8380da2e1d
commit
dcd81d026f
31 changed files with 346 additions and 221 deletions
|
@ -1,7 +1,7 @@
|
|||
#include "sdlinputwrapper.hpp"
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
#include <components/settings/settings.hpp>
|
||||
#include <components/settings/values.hpp>
|
||||
|
||||
#include <osgViewer/Viewer>
|
||||
|
||||
|
@ -187,8 +187,10 @@ namespace SDLUtil
|
|||
{
|
||||
case SDL_DISPLAYEVENT_ORIENTATION:
|
||||
if (mSensorListener
|
||||
&& evt.display.display == (unsigned int)Settings::Manager::getInt("screen", "Video"))
|
||||
&& evt.display.display == static_cast<Uint32>(Settings::video().mScreen))
|
||||
{
|
||||
mSensorListener->displayOrientationChanged();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue