Mercurial > hg > orthanc-stone
diff Framework/Viewport/SdlViewport.cpp @ 1053:32b403a47b19
simplifying IViewport
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Oct 2019 15:24:48 +0200 |
parents | 6a9300ecfa13 |
children | af456106576c |
line wrap: on
line diff
--- a/Framework/Viewport/SdlViewport.cpp Thu Oct 10 14:37:23 2019 +0200 +++ b/Framework/Viewport/SdlViewport.cpp Thu Oct 10 15:24:48 2019 +0200 @@ -49,10 +49,7 @@ void SdlOpenGLViewport::Refresh() { - if (GetCompositor()) - { - GetCompositor()->Refresh(); - } + compositor_->Refresh(); } @@ -77,7 +74,7 @@ void SdlCairoViewport::Refresh() { - GetCompositor()->Refresh(); + compositor_.Refresh(); window_.Render(sdlSurface_); } @@ -104,5 +101,4 @@ throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); } } - }