window.c
changeset 193 0a7025304867
parent 178 7d91f0b06c8b
child 211 2954c4b30525
equal deleted inserted replaced
192:614bba52258d 193:0a7025304867
  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 		// only allow zooming in-out in main window, or in viewports
  1023 		// only allow zooming in-out in main window, or in viewports
  1024 		if ( mousewheel && !(w->flags4 & WF_DISABLE_VP_SCROLL) && 
  1024 		if ( mousewheel && !(w->flags4 & WF_DISABLE_VP_SCROLL) &&
  1025 			   (w->window_class == WC_MAIN_WINDOW || w->window_class == WC_EXTRA_VIEW_PORT) ) {
  1025 			   (w->window_class == WC_MAIN_WINDOW || w->window_class == WC_EXTRA_VIEW_PORT) ) {
  1026 			ZoomInOrOutToCursorWindow(mousewheel < 0,w);
  1026 			ZoomInOrOutToCursorWindow(mousewheel < 0,w);
  1027 		}
  1027 		}
  1028 
  1028 
  1029 		if (click == 1) {
  1029 		if (click == 1) {