src/rail_gui.cpp
branchNewGRF_ports
changeset 6730 f09255ea0123
parent 6725 23339968083f
child 6743 cabfaa4a0295
equal deleted inserted replaced
6729:76133dcea48b 6730:f09255ea0123
   759 		/* Set up a clipping area for the '/' station preview */
   759 		/* Set up a clipping area for the '/' station preview */
   760 		if (FillDrawPixelInfo(&tmp_dpi, 7, 26 + y_offset, 66, 48)) {
   760 		if (FillDrawPixelInfo(&tmp_dpi, 7, 26 + y_offset, 66, 48)) {
   761 			old_dpi = _cur_dpi;
   761 			old_dpi = _cur_dpi;
   762 			_cur_dpi = &tmp_dpi;
   762 			_cur_dpi = &tmp_dpi;
   763 			if (!DrawStationTile(32, 16, _cur_railtype, AXIS_X, _railstation.station_class, _railstation.station_type)) {
   763 			if (!DrawStationTile(32, 16, _cur_railtype, AXIS_X, _railstation.station_class, _railstation.station_type)) {
   764 				StationPickerDrawSprite(32, 16, _cur_railtype, INVALID_ROADTYPE, 2);
   764 				StationPickerDrawSprite(32, 16, STATION_RAIL, _cur_railtype, INVALID_ROADTYPE, 2);
   765 			}
   765 			}
   766 			_cur_dpi = old_dpi;
   766 			_cur_dpi = old_dpi;
   767 		}
   767 		}
   768 
   768 
   769 		/* Set up a clipping area for the '\' station preview */
   769 		/* Set up a clipping area for the '\' station preview */
   770 		if (FillDrawPixelInfo(&tmp_dpi, 75, 26 + y_offset, 66, 48)) {
   770 		if (FillDrawPixelInfo(&tmp_dpi, 75, 26 + y_offset, 66, 48)) {
   771 			old_dpi = _cur_dpi;
   771 			old_dpi = _cur_dpi;
   772 			_cur_dpi = &tmp_dpi;
   772 			_cur_dpi = &tmp_dpi;
   773 			if (!DrawStationTile(32, 16, _cur_railtype, AXIS_Y, _railstation.station_class, _railstation.station_type)) {
   773 			if (!DrawStationTile(32, 16, _cur_railtype, AXIS_Y, _railstation.station_class, _railstation.station_type)) {
   774 				StationPickerDrawSprite(32, 16, _cur_railtype, INVALID_ROADTYPE, 3);
   774 				StationPickerDrawSprite(32, 16, STATION_RAIL, _cur_railtype, INVALID_ROADTYPE, 3);
   775 			}
   775 			}
   776 			_cur_dpi = old_dpi;
   776 			_cur_dpi = old_dpi;
   777 		}
   777 		}
   778 
   778 
   779 		DrawStringCentered(74, 15 + y_offset, STR_3002_ORIENTATION, 0);
   779 		DrawStringCentered(74, 15 + y_offset, STR_3002_ORIENTATION, 0);