comparison OrthancStone/Sources/Viewport/SdlViewport.cpp @ 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
97 return that; 97 return that;
98 } 98 }
99 99
100 uint32_t SdlOpenGLViewport::GetSdlWindowId() 100 uint32_t SdlOpenGLViewport::GetSdlWindowId()
101 { 101 {
102 SdlWindow& sdlWindowWrapper = context_.GetWindow(); 102 const SdlWindow& sdlWindowWrapper = context_.GetWindow();
103 SDL_Window* sdlWindow = sdlWindowWrapper.GetObject(); 103 SDL_Window* sdlWindow = sdlWindowWrapper.GetObject();
104 Uint32 sdlWindowId = SDL_GetWindowID(sdlWindow); 104 Uint32 sdlWindowId = SDL_GetWindowID(sdlWindow);
105 return sdlWindowId; 105 return sdlWindowId;
106 } 106 }
107 107
194 window_.ToggleMaximize(); 194 window_.ToggleMaximize();
195 } 195 }
196 196
197 197
198 // Assumes that the mutex is locked 198 // Assumes that the mutex is locked
199 void SdlCairoViewport::CreateSdlSurfaceFromCompositor(CairoCompositor& compositor) 199 void SdlCairoViewport::CreateSdlSurfaceFromCompositor(const CairoCompositor& compositor)
200 { 200 {
201 static const uint32_t rmask = 0x00ff0000; 201 static const uint32_t rmask = 0x00ff0000;
202 static const uint32_t gmask = 0x0000ff00; 202 static const uint32_t gmask = 0x0000ff00;
203 static const uint32_t bmask = 0x000000ff; 203 static const uint32_t bmask = 0x000000ff;
204 204