blob: 77d58efaf1d8a370dfe312a13d4ad9c56d8606f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/*
* Copyright (C) 2017-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#include "GameSettings.h"
using namespace KODI;
CGameSettings &CGameSettings::operator=(const CGameSettings &rhs)
{
if (this != &rhs)
{
m_videoFilter = rhs.m_videoFilter;
m_stretchMode = rhs.m_stretchMode;
m_rotationDegCCW = rhs.m_rotationDegCCW;
}
return *this;
}
void CGameSettings::Reset()
{
m_videoFilter.clear();
m_stretchMode = RETRO::STRETCHMODE::Normal;
m_rotationDegCCW = 0;
}
bool CGameSettings::operator==(const CGameSettings &rhs) const
{
return m_videoFilter == rhs.m_videoFilter &&
m_stretchMode == rhs.m_stretchMode &&
m_rotationDegCCW == rhs.m_rotationDegCCW;
}
void CGameSettings::SetVideoFilter(const std::string &videoFilter)
{
if (videoFilter != m_videoFilter)
{
m_videoFilter = videoFilter;
SetChanged();
}
}
void CGameSettings::SetStretchMode(RETRO::STRETCHMODE stretchMode)
{
if (stretchMode != m_stretchMode)
{
m_stretchMode = stretchMode;
SetChanged();
}
}
void CGameSettings::SetRotationDegCCW(unsigned int rotation)
{
if (rotation != m_rotationDegCCW)
{
m_rotationDegCCW = rotation;
SetChanged();
}
}
|