src/toolbar_gui.cpp
changeset 11114 36a38b287c05
parent 11112 98ea88b2b32b
equal deleted inserted replaced
11113:3cb24f59d83e 11114:36a38b287c05
   518 /* --- Zoom in button --- */
   518 /* --- Zoom in button --- */
   519 
   519 
   520 static void ToolbarZoomInClick(Window *w)
   520 static void ToolbarZoomInClick(Window *w)
   521 {
   521 {
   522 	if (DoZoomInOutWindow(ZOOM_IN, FindWindowById(WC_MAIN_WINDOW, 0))) {
   522 	if (DoZoomInOutWindow(ZOOM_IN, FindWindowById(WC_MAIN_WINDOW, 0))) {
   523 		w->HandleButtonClick((_game_mode == GM_EDITOR) ? TBSE_ZOOMIN : TBN_ZOOMIN);
   523 		w->HandleButtonClick((_game_mode == GM_EDITOR) ? (byte)TBSE_ZOOMIN : (byte)TBN_ZOOMIN);
   524 		SndPlayFx(SND_15_BEEP);
   524 		SndPlayFx(SND_15_BEEP);
   525 	}
   525 	}
   526 }
   526 }
   527 
   527 
   528 /* --- Zoom out button --- */
   528 /* --- Zoom out button --- */
   529 
   529 
   530 static void ToolbarZoomOutClick(Window *w)
   530 static void ToolbarZoomOutClick(Window *w)
   531 {
   531 {
   532 	if (DoZoomInOutWindow(ZOOM_OUT, FindWindowById(WC_MAIN_WINDOW, 0))) {
   532 	if (DoZoomInOutWindow(ZOOM_OUT, FindWindowById(WC_MAIN_WINDOW, 0))) {
   533 		w->HandleButtonClick((_game_mode == GM_EDITOR) ? TBSE_ZOOMOUT : TBN_ZOOMOUT);
   533 		w->HandleButtonClick((_game_mode == GM_EDITOR) ? (byte)TBSE_ZOOMOUT : (byte)TBN_ZOOMOUT);
   534 		SndPlayFx(SND_15_BEEP);
   534 		SndPlayFx(SND_15_BEEP);
   535 	}
   535 	}
   536 }
   536 }
   537 
   537 
   538 /* --- Rail button menu --- */
   538 /* --- Rail button menu --- */