From 1c56c211e7c3e4a53c222f8d8ee619450e98cd27 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 3 May 2018 14:39:33 +0200 Subject: Temporary disable lower framerate when focus lost --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3