Mercurial > hg > orthanc-stone
comparison Framework/Viewport/WebAssemblyViewport.cpp @ 1489:6e43cac7833c
Added public method to update canvas pixel size from CSS size
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 23 Jun 2020 15:41:52 +0200 |
parents | 4de884c95cd8 |
children |
comparison
equal
deleted
inserted
replaced
1488:7f16987131e1 | 1489:6e43cac7833c |
---|---|
286 false, | 286 false, |
287 OnMouseUp); | 287 OnMouseUp); |
288 } | 288 } |
289 } | 289 } |
290 | 290 |
291 void WebAssemblyViewport::UpdateCanvasSize() | |
292 { | |
293 UpdateSize(*compositor_); | |
294 } | |
295 | |
291 WebAssemblyViewport::~WebAssemblyViewport() | 296 WebAssemblyViewport::~WebAssemblyViewport() |
292 { | 297 { |
293 emscripten_set_resize_callback(EMSCRIPTEN_EVENT_TARGET_WINDOW, | 298 emscripten_set_resize_callback(EMSCRIPTEN_EVENT_TARGET_WINDOW, |
294 reinterpret_cast<void*>(this), | 299 reinterpret_cast<void*>(this), |
295 false, | 300 false, |