aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-03 14:39:33 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-03 14:39:36 +0200
commit1c56c211e7c3e4a53c222f8d8ee619450e98cd27 (patch)
tree6da29991a5cce804f09469193880bd3a17893988
parent00b1719b1a4cd3d863dc0f247af0b95d4ea0c0f8 (diff)
Temporary disable lower framerate when focus lost
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3804f6f..b1f63e9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -640,8 +640,8 @@ int main(int argc, char **argv)
}
else if(event.type == sf::Event::GainedFocus)
window.setFramerateLimit(FRAMERATE_FOCUSED);
- else if(event.type == sf::Event::LostFocus)
- window.setFramerateLimit(FRAMERATE_NOT_FOCUSED);
+ //else if(event.type == sf::Event::LostFocus)
+ // window.setFramerateLimit(FRAMERATE_NOT_FOCUSED);
currentChannel->processEvent(event);
}