From ac2351bc268106a6d573ffee5a95d6b3e79b456b Mon Sep 17 00:00:00 2001 From: Andreas Leroux Date: Mon, 12 Sep 2022 14:12:54 +0200 Subject: [PATCH] Fix typo errors linked: #577 --- src/Magnum/Platform/GlfwApplication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/GlfwApplication.cpp b/src/Magnum/Platform/GlfwApplication.cpp index 980a763df..a0d77dc6b 100644 --- a/src/Magnum/Platform/GlfwApplication.cpp +++ b/src/Magnum/Platform/GlfwApplication.cpp @@ -774,7 +774,7 @@ bool GlfwApplication::mainLoopIteration() { /* drawEvent() was called */ if (mainLoopDrawEventIteration()) { /* delay to prevent CPU hogging (if set) */ - if(!(_minimalLoopPeriod) { + if (!_minimalLoopPeriod) { const UnsignedInt loopTime = glfwGetTime() - timeBefore; if(loopTime < _minimalLoopPeriod) Utility::System::sleep(_minimalLoopPeriod - loopTime); @@ -793,7 +793,7 @@ bool GlfwApplication::mainLoopIteration() { indefinitely for next input event */ if(_flags & Flag::NoTickEvent) glfwWaitEvents(); - return !(flags & Flag::Exit || glfwWindowShouldClose(_window)); + return !(_flags & Flag::Exit || glfwWindowShouldClose(_window)); } void GlfwApplication::exit(int exitCode) {