comparison 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
comparison
equal deleted inserted replaced
1915:0d1235ca4abc 1916:bd527bbc34df
273 } 273 }
274 274
275 void WebAssemblyViewport::Invalidate() 275 void WebAssemblyViewport::Invalidate()
276 { 276 {
277 LOG(TRACE) << "WebAssemblyViewport::Invalidate()\n"; 277 LOG(TRACE) << "WebAssemblyViewport::Invalidate()\n";
278 long id = emscripten_request_animation_frame(OnRequestAnimationFrame, 278
279 CreateObjectCookie()); 279 #if 1
280 //animationFrameCallbackIds_.push_back(id); 280 emscripten_request_animation_frame(OnRequestAnimationFrame, CreateObjectCookie());
281 #else
282 animationFrameCallbackIds_.push_back(
283 emscripten_request_animation_frame(OnRequestAnimationFrame, CreateObjectCookie()));
284 #endif
281 } 285 }
282 286
283 void WebAssemblyViewport::FitForPrint() 287 void WebAssemblyViewport::FitForPrint()
284 { 288 {
285 if (compositor_.get() != NULL && 289 if (compositor_.get() != NULL &&