Mercurial > hg > orthanc-stone
changeset 1480:4de884c95cd8
fix includes in WebAssemblyCairoViewport
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Jun 2020 16:21:17 +0200 |
parents | 5e3cfe87a873 |
children | 970ee51fe01f |
files | Framework/Viewport/WebAssemblyCairoViewport.cpp Framework/Viewport/WebAssemblyViewport.cpp |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Viewport/WebAssemblyCairoViewport.cpp Thu Jun 18 16:18:53 2020 +0200 +++ b/Framework/Viewport/WebAssemblyCairoViewport.cpp Fri Jun 19 16:21:17 2020 +0200 @@ -25,6 +25,8 @@ #include <Images/Image.h> +#include <boost/math/special_functions/round.hpp> + namespace OrthancStone { void WebAssemblyCairoViewport::GetCanvasSize(unsigned int& width,
--- a/Framework/Viewport/WebAssemblyViewport.cpp Thu Jun 18 16:18:53 2020 +0200 +++ b/Framework/Viewport/WebAssemblyViewport.cpp Fri Jun 19 16:21:17 2020 +0200 @@ -236,7 +236,7 @@ controller_.reset(new ViewportController(viewport)); LOG(INFO) << "Initializing Stone viewport on HTML canvas: " - << canvasId_; + << canvasId_; if (canvasId_.empty() || canvasId_[0] == '#') @@ -301,17 +301,17 @@ emscripten_set_mousedown_callback(canvasCssSelector_.c_str(), reinterpret_cast<void*>(this), false, - OnMouseDown); + NULL); emscripten_set_mousemove_callback(canvasCssSelector_.c_str(), reinterpret_cast<void*>(this), false, - OnMouseMove); + NULL); emscripten_set_mouseup_callback(canvasCssSelector_.c_str(), reinterpret_cast<void*>(this), false, - OnMouseUp); + NULL); } }