Mercurial > hg > orthanc-stone
diff Framework/OpenGL/WebAssemblyOpenGLContext.cpp @ 997:d6b83ee3a950
fix WebAssemblyOpenGLViewport::UpdateSize()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 20 Sep 2019 10:16:55 +0200 |
parents | 92e32e263ae9 |
children | d393ad9cf68c |
line wrap: on
line diff
--- a/Framework/OpenGL/WebAssemblyOpenGLContext.cpp Thu Sep 19 18:26:11 2019 +0200 +++ b/Framework/OpenGL/WebAssemblyOpenGLContext.cpp Fri Sep 20 10:16:55 2019 +0200 @@ -189,7 +189,7 @@ canvasWidth_ = static_cast<unsigned int>(boost::math::iround(w)); canvasHeight_ = static_cast<unsigned int>(boost::math::iround(h)); } - + emscripten_set_canvas_element_size(canvas_.c_str(), canvasWidth_, canvasHeight_); } };