Mercurial > hg > orthanc-stone
diff Framework/Viewport/SdlViewport.cpp @ 1315:1a08b779be64 broker
warning 4996 (deprecation in jsoncpp) + indentation changes
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 16 Mar 2020 11:21:13 +0100 |
parents | 3d26447ddd28 |
children | ab81ee8fce1f |
line wrap: on
line diff
--- a/Framework/Viewport/SdlViewport.cpp Mon Mar 16 11:19:50 2020 +0100 +++ b/Framework/Viewport/SdlViewport.cpp Mon Mar 16 11:21:13 2020 +0100 @@ -105,21 +105,23 @@ // "OpenGLContext" it references (*) ClearCompositor(); } - + + void SdlOpenGLViewport::Paint() { SdlLock lock(*this); lock.GetCompositor().Refresh(lock.GetController().GetScene()); } - - void SdlOpenGLViewport::UpdateSize(unsigned int width, - unsigned int height) + + + void SdlOpenGLViewport::UpdateSize(unsigned int width, unsigned int height) { // nothing to do in OpenGL, the OpenGLCompositor::UpdateSize will be called automatically SdlLock lock(*this); lock.Invalidate(); } - + + void SdlOpenGLViewport::ToggleMaximize() { // No need to call "Invalidate()" here, as "UpdateSize()" will @@ -127,7 +129,9 @@ SdlLock lock(*this); context_.ToggleMaximize(); } - + + + SdlCairoViewport::SdlCairoViewport(const char* title, unsigned int width, unsigned int height,