equal
deleted
inserted
replaced
1018 vp = IsPtInWindowViewport(w, x, y); |
1018 vp = IsPtInWindowViewport(w, x, y); |
1019 if (vp != NULL) { |
1019 if (vp != NULL) { |
1020 if (_game_mode == GM_MENU) |
1020 if (_game_mode == GM_MENU) |
1021 return; |
1021 return; |
1022 |
1022 |
1023 if (mousewheel && !(w->flags4 & WF_DISABLE_VP_SCROLL)) { |
1023 // only allow zooming in-out in main window, or in viewports |
|
1024 if ( mousewheel && !(w->flags4 & WF_DISABLE_VP_SCROLL) && |
|
1025 (w->window_class == WC_MAIN_WINDOW || w->window_class == WC_EXTRA_VIEW_PORT) ) { |
1024 ZoomInOrOutToCursorWindow(mousewheel < 0,w); |
1026 ZoomInOrOutToCursorWindow(mousewheel < 0,w); |
1025 } |
1027 } |
1026 |
1028 |
1027 if (click == 1) { |
1029 if (click == 1) { |
1028 DEBUG(misc, 2) ("cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite); |
1030 DEBUG(misc, 2) ("cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite); |