Mercurial > hg > orthanc-stone
comparison Applications/Samples/Sdl/RtViewer/RtViewerSdl.cpp @ 1910:f81cdf283859
display RT-STRUCT before the referenced slices get loaded
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 01 Feb 2022 10:40:35 +0100 |
parents | 184b0aeae1af |
children | 07964689cb0b |
comparison
equal
deleted
inserted
replaced
1909:782ba9eb6f22 | 1910:f81cdf283859 |
---|---|
421 if (sdlEvent.wheel.y < 0) | 421 if (sdlEvent.wheel.y < 0) |
422 delta = -1; | 422 delta = -1; |
423 if (sdlEvent.wheel.y > 0) | 423 if (sdlEvent.wheel.y > 0) |
424 delta = 1; | 424 delta = 1; |
425 | 425 |
426 if (SDL_SCANCODE_LCTRL < scancodeCount && | |
427 keyboardState[SDL_SCANCODE_LCTRL]) // Speed up scrolling if CTRL is down | |
428 { | |
429 delta *= 10; | |
430 } | |
431 | |
426 view->Scroll(delta); | 432 view->Scroll(delta); |
427 } | 433 } |
428 else | 434 else |
429 { | 435 { |
430 for (size_t i = 0; i < views.size(); ++i) | 436 for (size_t i = 0; i < views.size(); ++i) |