Factor out screen settings to ScreenSettings struct

It's a bit annoying to pass each screen setting individually, would be
nice if we could just wrap it up in a nice struct and pass that instead.
This commit is contained in:
Misa
2020-11-12 16:29:11 -08:00
committed by Ethan Lee
parent 9f5f697dda
commit af11f6936a
3 changed files with 39 additions and 24 deletions

View File

@@ -0,0 +1,17 @@
#ifndef SCREENSETTINGS_H
#define SCREENSETTINGS_H
struct ScreenSettings
{
ScreenSettings();
int windowWidth;
int windowHeight;
bool fullscreen;
bool useVsync;
int stretch;
bool linearFilter;
bool badSignal;
};
#endif /* SCREENSETTINGS_H */