Turn screenshots (F3) off by default

This commit is contained in:
Jonas Kulla 2014-01-07 05:25:00 +01:00
parent 953f903149
commit 063793c4d9
3 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,7 @@ namespace po = boost::program_options;
Config::Config()
: debugMode(false),
screenshots(false),
winResizable(false),
fullscreen(false),
fixedAspectRatio(true),
@ -55,6 +56,7 @@ void Config::read()
{
#define PO_DESC_ALL \
PO_DESC(debugMode, bool) \
PO_DESC(screenshots, bool) \
PO_DESC(winResizable, bool) \
PO_DESC(fullscreen, bool) \
PO_DESC(fixedAspectRatio, bool) \

View File

@ -28,6 +28,7 @@
struct Config
{
bool debugMode;
bool screenshots;
bool winResizable;
bool fullscreen;

View File

@ -209,7 +209,7 @@ void EventThread::process(RGSSThreadData &rtData)
break;
}
if (event.key.keysym.scancode == SDL_SCANCODE_F3)
if (event.key.keysym.scancode == SDL_SCANCODE_F3 && rtData.config.screenshots)
rtData.rqScreenshot = true;
keyStates[event.key.keysym.scancode] = true;