mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Merge branch 'vcmi/master' into 'vcmi/develop'
This commit is contained in:
@ -165,6 +165,7 @@ void InputHandler::preprocessEvent(const SDL_Event & ev)
|
||||
{
|
||||
if(ev.key.keysym.sym == SDLK_F4 && (ev.key.keysym.mod & KMOD_ALT))
|
||||
{
|
||||
// FIXME: dead code? Looks like intercepted by OS/SDL and delivered as SDL_Quit instead?
|
||||
boost::mutex::scoped_lock interfaceLock(GH.interfaceMutex);
|
||||
handleQuit(true);
|
||||
return;
|
||||
@ -176,16 +177,6 @@ void InputHandler::preprocessEvent(const SDL_Event & ev)
|
||||
handleQuit(true);
|
||||
return;
|
||||
}
|
||||
|
||||
if(ev.type == SDL_KEYDOWN && ev.key.keysym.sym == SDLK_F4)
|
||||
{
|
||||
boost::mutex::scoped_lock interfaceLock(GH.interfaceMutex);
|
||||
Settings full = settings.write["video"]["fullscreen"];
|
||||
full->Bool() = !full->Bool();
|
||||
|
||||
GH.onScreenResize(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if(ev.type == SDL_USEREVENT)
|
||||
{
|
||||
|
Reference in New Issue
Block a user