Mercurial > hg > orthanc-stone
diff Framework/Viewport/SdlViewport.h @ 909:7a7e4e1f558f
SdlCairo resizable
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 18 Jul 2019 09:41:10 +0200 |
parents | 722ee73e6ba2 |
children | 685c9a2d115f |
line wrap: on
line diff
--- a/Framework/Viewport/SdlViewport.h Thu Jul 18 09:22:08 2019 +0200 +++ b/Framework/Viewport/SdlViewport.h Thu Jul 18 09:41:10 2019 +0200 @@ -58,6 +58,9 @@ } virtual SdlWindow& GetWindow() = 0; + + virtual void UpdateSize(unsigned int width, + unsigned int height) = 0; }; class SdlOpenGLViewport : public SdlViewport @@ -88,6 +91,12 @@ { return context_.GetWindow(); } + + virtual void UpdateSize(unsigned int width, + unsigned int height) + { + // nothing to do in OpenGL, the OpenGLCompositor::UpdateSize will be called automatically + } }; @@ -124,5 +133,11 @@ virtual void Refresh(); + virtual void UpdateSize(unsigned int width, + unsigned int height); + + private: + void UpdateSdlSurfaceSize(unsigned int width, + unsigned int height); }; }