# HG changeset patch # User Benjamin Golinvaux # Date 1558533694 -7200 # Node ID a386bbc955dc772d72bf4f97ff87982056b20f19 # Parent 6030db24eaeafaecd5ce8d2ea54e856bf84e51c0 dummy diff -r 6030db24eaea -r a386bbc955dc Samples/Sdl/TrackerSampleApp.cpp --- 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());