Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Viewport/WebAssemblyViewport.cpp @ 1578:1f812f4c95be
comments
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Sep 2020 17:20:36 +0200 |
parents | e8a120dd05bd |
children |
comparison
equal
deleted
inserted
replaced
1577:e8a120dd05bd | 1578:1f812f4c95be |
---|---|
221 if (compositor_.get() != NULL && | 221 if (compositor_.get() != NULL && |
222 controller_ /* should always be true */) | 222 controller_ /* should always be true */) |
223 { | 223 { |
224 RefreshCanvasSize(); | 224 RefreshCanvasSize(); |
225 compositor_->FitContent(controller_->GetScene()); | 225 compositor_->FitContent(controller_->GetScene()); |
226 OnRequestAnimationFrame(0, reinterpret_cast<void*>(this)); | 226 OnRequestAnimationFrame(0, reinterpret_cast<void*>(this)); // Mandatory to work with Firefox |
227 } | 227 } |
228 } | 228 } |
229 | 229 |
230 void WebAssemblyViewport::AcquireCompositor(ICompositor* compositor /* takes ownership */) | 230 void WebAssemblyViewport::AcquireCompositor(ICompositor* compositor /* takes ownership */) |
231 { | 231 { |