src/rail_gui.cpp
changeset 7173 0a9b13debedf
parent 7170 bd34b6d0e4f1
child 7179 3e123c2b7c93
equal deleted inserted replaced
7172:40781792e25f 7173:0a9b13debedf
   753 		/* Set up a clipping area for the '/' station preview */
   753 		/* Set up a clipping area for the '/' station preview */
   754 		if (FillDrawPixelInfo(&tmp_dpi, 7, 26 + y_offset, 66, 48)) {
   754 		if (FillDrawPixelInfo(&tmp_dpi, 7, 26 + y_offset, 66, 48)) {
   755 			old_dpi = _cur_dpi;
   755 			old_dpi = _cur_dpi;
   756 			_cur_dpi = &tmp_dpi;
   756 			_cur_dpi = &tmp_dpi;
   757 			if (!DrawStationTile(32, 16, _cur_railtype, AXIS_X, _railstation.station_class, _railstation.station_type)) {
   757 			if (!DrawStationTile(32, 16, _cur_railtype, AXIS_X, _railstation.station_class, _railstation.station_type)) {
   758 				StationPickerDrawSprite(32, 16, _cur_railtype, 2);
   758 				StationPickerDrawSprite(32, 16, _cur_railtype, INVALID_ROADTYPE, 2);
   759 			}
   759 			}
   760 			_cur_dpi = old_dpi;
   760 			_cur_dpi = old_dpi;
   761 		}
   761 		}
   762 
   762 
   763 		/* Set up a clipping area for the '\' station preview */
   763 		/* Set up a clipping area for the '\' station preview */
   764 		if (FillDrawPixelInfo(&tmp_dpi, 75, 26 + y_offset, 66, 48)) {
   764 		if (FillDrawPixelInfo(&tmp_dpi, 75, 26 + y_offset, 66, 48)) {
   765 			old_dpi = _cur_dpi;
   765 			old_dpi = _cur_dpi;
   766 			_cur_dpi = &tmp_dpi;
   766 			_cur_dpi = &tmp_dpi;
   767 			if (!DrawStationTile(32, 16, _cur_railtype, AXIS_Y, _railstation.station_class, _railstation.station_type)) {
   767 			if (!DrawStationTile(32, 16, _cur_railtype, AXIS_Y, _railstation.station_class, _railstation.station_type)) {
   768 				StationPickerDrawSprite(32, 16, _cur_railtype, 3);
   768 				StationPickerDrawSprite(32, 16, _cur_railtype, INVALID_ROADTYPE, 3);
   769 			}
   769 			}
   770 			_cur_dpi = old_dpi;
   770 			_cur_dpi = old_dpi;
   771 		}
   771 		}
   772 
   772 
   773 		DrawStringCentered(74, 15 + y_offset, STR_3002_ORIENTATION, 0);
   773 		DrawStringCentered(74, 15 + y_offset, STR_3002_ORIENTATION, 0);