diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-03 14:39:33 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-05-03 14:39:36 +0200 |
commit | 1c56c211e7c3e4a53c222f8d8ee619450e98cd27 (patch) | |
tree | 6da29991a5cce804f09469193880bd3a17893988 /src | |
parent | 00b1719b1a4cd3d863dc0f247af0b95d4ea0c0f8 (diff) |
Temporary disable lower framerate when focus lost
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 4 |
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); } |