comparison 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
comparison
equal deleted inserted replaced
996:727f2007ca23 997:d6b83ee3a950
187 else 187 else
188 { 188 {
189 canvasWidth_ = static_cast<unsigned int>(boost::math::iround(w)); 189 canvasWidth_ = static_cast<unsigned int>(boost::math::iround(w));
190 canvasHeight_ = static_cast<unsigned int>(boost::math::iround(h)); 190 canvasHeight_ = static_cast<unsigned int>(boost::math::iround(h));
191 } 191 }
192 192
193 emscripten_set_canvas_element_size(canvas_.c_str(), canvasWidth_, canvasHeight_); 193 emscripten_set_canvas_element_size(canvas_.c_str(), canvasWidth_, canvasHeight_);
194 } 194 }
195 }; 195 };
196 196
197 197