Mercurial > hg > orthanc-stone
diff Framework/Viewport/SdlViewport.cpp @ 1311:3d26447ddd28 broker
warning fixes + doc + indentation + header files in cmake for VC++ sln browsing
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 09 Mar 2020 14:55:22 +0100 |
parents | 8a28a9bf8876 |
children | 1a08b779be64 |
line wrap: on
line diff
--- a/Framework/Viewport/SdlViewport.cpp Mon Mar 09 14:53:22 2020 +0100 +++ b/Framework/Viewport/SdlViewport.cpp Mon Mar 09 14:55:22 2020 +0100 @@ -105,24 +105,21 @@ // "OpenGLContext" it references (*) ClearCompositor(); } - - + void SdlOpenGLViewport::Paint() { SdlLock lock(*this); lock.GetCompositor().Refresh(lock.GetController().GetScene()); } - - - void SdlOpenGLViewport::UpdateSize(unsigned int width, + + 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 @@ -130,9 +127,7 @@ SdlLock lock(*this); context_.ToggleMaximize(); } - - - + SdlCairoViewport::SdlCairoViewport(const char* title, unsigned int width, unsigned int height,