comparison OrthancStone/Sources/Scene2D/OpenGLCompositor.h @ 1576:92fca2b3ba3d

sanitizing the handling of canvas size
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Sep 2020 16:40:30 +0200
parents 85e117739eca
children 4fb8fdf03314
comparison
equal deleted inserted replaced
1575:e4a52cbbdd70 1576:92fca2b3ba3d
70 const std::string& ttf, 70 const std::string& ttf,
71 unsigned int fontSize, 71 unsigned int fontSize,
72 Orthanc::Encoding codepage) ORTHANC_OVERRIDE; 72 Orthanc::Encoding codepage) ORTHANC_OVERRIDE;
73 #endif 73 #endif
74 74
75 virtual void RefreshCanvasSize() ORTHANC_OVERRIDE; 75 virtual void SetCanvasSize(unsigned int canvasWidth,
76 unsigned int canvasHeight) ORTHANC_OVERRIDE;
76 77
77 virtual unsigned int GetCanvasWidth() const ORTHANC_OVERRIDE 78 virtual unsigned int GetCanvasWidth() const ORTHANC_OVERRIDE
78 { 79 {
79 return canvasWidth_; 80 return canvasWidth_;
80 } 81 }