Mercurial > hg > orthanc-stone
diff Framework/Viewport/WebAssemblyViewport.h @ 1054:3c9529edf5fd
fixing WebAssemblyViewport
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Oct 2019 15:55:54 +0200 |
parents | 6a9300ecfa13 |
children | af456106576c |
line wrap: on
line diff
--- a/Framework/Viewport/WebAssemblyViewport.h Thu Oct 10 15:24:48 2019 +0200 +++ b/Framework/Viewport/WebAssemblyViewport.h Thu Oct 10 15:55:54 2019 +0200 @@ -58,10 +58,12 @@ // This function must be called each time the browser window is resized void UpdateSize(); - virtual ICompositor* GetCompositor() ORTHANC_OVERRIDE + virtual bool HasCompositor() const ORTHANC_OVERRIDE { - return compositor_.get(); + return (compositor_.get() != NULL); } + + virtual ICompositor& GetCompositor() ORTHANC_OVERRIDE; virtual void Refresh() ORTHANC_OVERRIDE; @@ -93,11 +95,16 @@ void UpdateSize(); - virtual void Refresh(); + virtual void Refresh() ORTHANC_OVERRIDE; - virtual ICompositor* GetCompositor() + virtual bool HasCompositor() const ORTHANC_OVERRIDE { - return &compositor_; + return true; + } + + virtual ICompositor& GetCompositor() ORTHANC_OVERRIDE + { + return compositor_; } }; }