diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-10-29 02:02:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-10-29 02:02:04 +0300 |
commit | a6d18b282ab916c6536dc25516affeb9200043b6 (patch) | |
tree | 9980735a47cb2118999fb4f4dceaa52bf9f4fae7 /src/eventsmanager.cpp | |
parent | 98c74738f21d7ae256f1273b6c1614ee64e2a3ad (diff) | |
download | manaverse-s20181102.tar.gz manaverse-s20181102.tar.bz2 manaverse-s20181102.tar.xz manaverse-s20181102.zip |
Fix code style.s20181102
Diffstat (limited to 'src/eventsmanager.cpp')
-rw-r--r-- | src/eventsmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp index ae0cf0650..090cfdb82 100644 --- a/src/eventsmanager.cpp +++ b/src/eventsmanager.cpp @@ -627,7 +627,7 @@ void EventsManager::handleActive(const SDL_Event &event) if ((event.active.state & SDL_APPACTIVE) != 0) { - if (event.active.gain != 0u) + if (event.active.gain != 0U) { // window restore WindowManager::setIsMinimized(false); #ifndef DYECMD @@ -670,11 +670,11 @@ void EventsManager::handleActive(const SDL_Event &event) if ((event.active.state & SDL_APPINPUTFOCUS) != 0) { - settings.inputFocused = (event.active.gain != 0u) ? + settings.inputFocused = (event.active.gain != 0U) ? KeyboardFocus::Focused : KeyboardFocus::Unfocused; } if ((event.active.state & SDL_APPMOUSEFOCUS) != 0) - settings.mouseFocused = (event.active.gain != 0u); + settings.mouseFocused = (event.active.gain != 0U); #ifndef DYECMD if (inGame) Game::instance()->updateFrameRate(fpsLimit); |