Mercurial > hg > orthanc-stone
changeset 753:a386bbc955dc
dummy
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 22 May 2019 16:01:34 +0200 |
parents | 6030db24eaea |
children | 92c400a09f1b |
files | Samples/Sdl/TrackerSampleApp.cpp |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Samples/Sdl/TrackerSampleApp.cpp Wed May 22 16:00:58 2019 +0200 +++ b/Samples/Sdl/TrackerSampleApp.cpp Wed May 22 16:01:34 2019 +0200 @@ -160,6 +160,10 @@ { DisplayInfoText(); + // we seed the random number generator for random measure tool + // generation + srand(42); + if (event.type == SDL_MOUSEMOTION) { int scancodeCount = 0; @@ -251,6 +255,11 @@ } break; + case SDLK_m: + // let's create a random measuring tool + + + case SDLK_s: controller_->FitContent(compositor_->GetCanvasWidth(), compositor_->GetCanvasHeight());