src/industry_gui.cpp
changeset 8994 fb5e761cf141
parent 8965 29a591456a2f
child 9019 fe04abd3f58f
equal deleted inserted replaced
8993:35c33a4819de 8994:fb5e761cf141
   629 	if (w != NULL) {
   629 	if (w != NULL) {
   630 		w->flags4 |= WF_DISABLE_VP_SCROLL;
   630 		w->flags4 |= WF_DISABLE_VP_SCROLL;
   631 		WP(w, indview_d).editbox_line = 0;
   631 		WP(w, indview_d).editbox_line = 0;
   632 		WP(w, indview_d).clicked_line = 0;
   632 		WP(w, indview_d).clicked_line = 0;
   633 		WP(w, indview_d).clicked_button = 0;
   633 		WP(w, indview_d).clicked_button = 0;
   634 		AssignWindowViewport(w, 3, 17, 0xFE, 0x56, GetIndustry(w->window_number)->xy + TileDiffXY(1, 1), ZOOM_LVL_INDUSTRY);
   634 		InitializeWindowViewport(w, 3, 17, 254, 86, GetIndustry(w->window_number)->xy + TileDiffXY(1, 1), ZOOM_LVL_INDUSTRY);
   635 	}
   635 	}
   636 }
   636 }
   637 
   637 
   638 /** Names of the widgets of the industry directory gui */
   638 /** Names of the widgets of the industry directory gui */
   639 enum IndustryDirectoryWidgets {
   639 enum IndustryDirectoryWidgets {