mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 17:18:53 +00:00
VideoConfig: Make AspectMode an enum class
Makes for more strongly-typed identifiers (and doesn't pollute surrounding namespaces)
This commit is contained in:
parent
609a17a0cd
commit
10697bcbe3
6 changed files with 45 additions and 41 deletions
|
@ -24,12 +24,12 @@
|
|||
|
||||
constexpr int EFB_SCALE_AUTO_INTEGRAL = 0;
|
||||
|
||||
enum AspectMode
|
||||
enum class AspectMode
|
||||
{
|
||||
ASPECT_AUTO = 0,
|
||||
ASPECT_ANALOG_WIDE = 1,
|
||||
ASPECT_ANALOG = 2,
|
||||
ASPECT_STRETCH = 3,
|
||||
Auto,
|
||||
AnalogWide,
|
||||
Analog,
|
||||
Stretch,
|
||||
};
|
||||
|
||||
enum StereoMode
|
||||
|
@ -63,7 +63,7 @@ struct VideoConfig final
|
|||
// General
|
||||
bool bVSync;
|
||||
bool bWidescreenHack;
|
||||
int iAspectRatio;
|
||||
AspectMode aspect_mode;
|
||||
bool bCrop; // Aspect ratio controls.
|
||||
bool bShaderCache;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue