comparison OrthancStone/Sources/Viewport/WebGLViewport.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 c54bc5bffd01
children
comparison
equal deleted inserted replaced
1575:e4a52cbbdd70 1576:92fca2b3ba3d
36 36
37 protected: 37 protected:
38 virtual void Paint(ICompositor& compositor, 38 virtual void Paint(ICompositor& compositor,
39 ViewportController& controller) ORTHANC_OVERRIDE; 39 ViewportController& controller) ORTHANC_OVERRIDE;
40 40
41 virtual void UpdateSize(ICompositor& compositor) ORTHANC_OVERRIDE
42 {
43 context_.RefreshCanvasSize();
44 }
45
46 public: 41 public:
47 static boost::shared_ptr<WebGLViewport> Create(const std::string& canvasId, 42 static boost::shared_ptr<WebGLViewport> Create(const std::string& canvasId,
48 bool enableEmscriptenMouseEvents = true); 43 bool enableEmscriptenMouseEvents = true);
49 44
50 virtual ~WebGLViewport(); 45 virtual ~WebGLViewport();