Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Platforms/WebAssembly/WebAssemblyViewport.cpp @ 1916:bd527bbc34df
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 20 Mar 2022 18:23:39 +0100 |
parents | 184b0aeae1af |
children | 07964689cb0b |
line wrap: on
line diff
--- a/OrthancStone/Sources/Platforms/WebAssembly/WebAssemblyViewport.cpp Sun Mar 20 18:07:11 2022 +0100 +++ b/OrthancStone/Sources/Platforms/WebAssembly/WebAssemblyViewport.cpp Sun Mar 20 18:23:39 2022 +0100 @@ -275,9 +275,13 @@ void WebAssemblyViewport::Invalidate() { LOG(TRACE) << "WebAssemblyViewport::Invalidate()\n"; - long id = emscripten_request_animation_frame(OnRequestAnimationFrame, - CreateObjectCookie()); - //animationFrameCallbackIds_.push_back(id); + +#if 1 + emscripten_request_animation_frame(OnRequestAnimationFrame, CreateObjectCookie()); +#else + animationFrameCallbackIds_.push_back( + emscripten_request_animation_frame(OnRequestAnimationFrame, CreateObjectCookie())); +#endif } void WebAssemblyViewport::FitForPrint()