Browse Source

Platform: doc++

pull/349/head
Vladimír Vondruš 7 years ago
parent
commit
4c6ebeeef4
  1. 7
      src/Magnum/Platform/EmscriptenApplication.cpp

7
src/Magnum/Platform/EmscriptenApplication.cpp

@ -565,15 +565,14 @@ void EmscriptenApplication::setupAnimationFrame(bool forceAnimationFrame) {
} }
/* If redraw is requested, we will not cancel the already requested /* If redraw is requested, we will not cancel the already requested
animation frame. animation frame. If ForceAnimationFrame is set, we will request
If ForceAnimationFrame is set, we will request an animation frame an animation frame even if redraw is not requested. */
even if redraw is not requested. */
if((app._flags & Flag::Redraw) && !(app._flags & Flag::ExitRequested)) { if((app._flags & Flag::Redraw) && !(app._flags & Flag::ExitRequested)) {
return true; return true;
} }
/* Cancel last requested animation frame and make redraw() /* Cancel last requested animation frame and make redraw()
requestAnimationFrame again next time */ requestAnimationFrame again next time */
app._flags &= ~Flag::LoopActive; app._flags &= ~Flag::LoopActive;
return false; return false;
}; };

Loading…
Cancel
Save