mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-09-20 21:37:26 +02:00
550e76a6dc
This enum is to just make each mode be readable, instead of mysterious 0/1/2 values. It's not a strictly-typed enum because we still have to serialize it as ints in the XML, but it's better than just leaving them as ints. This also adds a NUM_SCALING_MODES enum, so we don't have to hardcode that 3 when cycling scaling modes anymore.
25 lines
426 B
C
25 lines
426 B
C
#ifndef SCREENSETTINGS_H
|
|
#define SCREENSETTINGS_H
|
|
|
|
enum
|
|
{
|
|
SCALING_LETTERBOX = 0,
|
|
SCALING_STRETCH = 1,
|
|
SCALING_INTEGER = 2,
|
|
NUM_SCALING_MODES
|
|
};
|
|
|
|
struct ScreenSettings
|
|
{
|
|
int windowWidth;
|
|
int windowHeight;
|
|
bool fullscreen;
|
|
bool useVsync;
|
|
int scalingMode;
|
|
bool linearFilter;
|
|
bool badSignal;
|
|
};
|
|
|
|
void ScreenSettings_default(struct ScreenSettings* _this);
|
|
|
|
#endif /* SCREENSETTINGS_H */
|