Add option to fix the framerate to the native screen refresh rate

Useful on mobile devices where using non-standard framerates
looks absolutely horrible and screen refresh rates vary highly.
This commit is contained in:
Jonas Kulla 2015-01-03 18:48:09 +01:00
parent 4fb94aaf10
commit 146e0294b4
6 changed files with 44 additions and 6 deletions

View file

@ -152,6 +152,7 @@ Config::Config()
defScreenH(0),
fixedFramerate(0),
frameSkip(true),
syncToRefreshrate(false),
solidFonts(false),
subImageFix(false),
gameFolder("."),
@ -181,6 +182,7 @@ void Config::read(int argc, char *argv[])
PO_DESC(defScreenH, int) \
PO_DESC(fixedFramerate, int) \
PO_DESC(frameSkip, bool) \
PO_DESC(syncToRefreshrate, bool) \
PO_DESC(solidFonts, bool) \
PO_DESC(subImageFix, bool) \
PO_DESC(gameFolder, std::string) \