Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/viewer/SDLview/sdl.c b/viewer/SDLview/sdl.c
- index fb96888..25f975f 100644
- --- a/viewer/SDLview/sdl.c
- +++ b/viewer/SDLview/sdl.c
- @@ -290,6 +290,14 @@ void checkSDLevent() {
- // rearm double click detection
- lastclickat = SDL_GetTicks();
- }
- + } else if (event.button.button == SDL_BUTTON_WHEELDOWN) {
- + zoom /= 1.2;
- + offset_x = display_x / 2 + (offset_x - display_x / 2) / 1.2;
- + offset_y = display_y / 2 + (offset_y - display_y / 2) / 1.2;
- + } else if (event.button.button == SDL_BUTTON_WHEELUP) {
- + zoom *= 1.2;
- + offset_x = display_x / 2 + (offset_x - display_x / 2) * 1.2;
- + offset_y = display_y / 2 + (offset_y - display_y / 2) * 1.2;
- } else {
- // disarm doubleclick detection
- lastclickat = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement