comparison OrthancStone/Sources/OpenGL/SdlOpenGLContext.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 37d90bd69f31
children
comparison
equal deleted inserted replaced
1575:e4a52cbbdd70 1576:92fca2b3ba3d
61 61
62 virtual void MakeCurrent() ORTHANC_OVERRIDE; 62 virtual void MakeCurrent() ORTHANC_OVERRIDE;
63 63
64 virtual void SwapBuffer() ORTHANC_OVERRIDE; 64 virtual void SwapBuffer() ORTHANC_OVERRIDE;
65 65
66 virtual unsigned int GetCanvasWidth() const ORTHANC_OVERRIDE; 66 unsigned int GetCanvasWidth() const;
67 67
68 virtual unsigned int GetCanvasHeight() const ORTHANC_OVERRIDE; 68 unsigned int GetCanvasHeight() const;
69 69
70 void ToggleMaximize() 70 void ToggleMaximize()
71 { 71 {
72 window_.ToggleMaximize(); 72 window_.ToggleMaximize();
73 } 73 }
74
75 virtual void RefreshCanvasSize() ORTHANC_OVERRIDE
76 {
77 // Nothing to do for SDL
78 }
79 }; 74 };
80 } 75 }
81 76
82 #endif 77 #endif