Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Viewport/SdlViewport.h @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | b4ccd4963d37 |
children | 92fca2b3ba3d |
comparison
equal
deleted
inserted
replaced
1570:9a04f42098a3 | 1571:85e117739eca |
---|---|
71 private: | 71 private: |
72 SdlViewport& that_; | 72 SdlViewport& that_; |
73 boost::recursive_mutex::scoped_lock lock_; | 73 boost::recursive_mutex::scoped_lock lock_; |
74 | 74 |
75 public: | 75 public: |
76 SdlLock(SdlViewport& that) : | 76 explicit SdlLock(SdlViewport& that) : |
77 that_(that), | 77 that_(that), |
78 lock_(that.mutex_) | 78 lock_(that.mutex_) |
79 { | 79 { |
80 } | 80 } |
81 | 81 |
82 virtual bool HasCompositor() const ORTHANC_OVERRIDE | 82 virtual bool HasCompositor() const ORTHANC_OVERRIDE |
83 { | 83 { |
166 { | 166 { |
167 private: | 167 private: |
168 SdlWindow window_; | 168 SdlWindow window_; |
169 SDL_Surface* sdlSurface_; | 169 SDL_Surface* sdlSurface_; |
170 | 170 |
171 void CreateSdlSurfaceFromCompositor(CairoCompositor& compositor); | 171 void CreateSdlSurfaceFromCompositor(const CairoCompositor& compositor); |
172 | 172 |
173 private: | 173 private: |
174 SdlCairoViewport(const char* title, | 174 SdlCairoViewport(const char* title, |
175 unsigned int width, | 175 unsigned int width, |
176 unsigned int height, | 176 unsigned int height, |