756 /* Set up a clipping area for the '/' station preview */ |
757 /* Set up a clipping area for the '/' station preview */ |
757 if (FillDrawPixelInfo(&tmp_dpi, 7, 26 + y_offset, 66, 48)) { |
758 if (FillDrawPixelInfo(&tmp_dpi, 7, 26 + y_offset, 66, 48)) { |
758 old_dpi = _cur_dpi; |
759 old_dpi = _cur_dpi; |
759 _cur_dpi = &tmp_dpi; |
760 _cur_dpi = &tmp_dpi; |
760 if (!DrawStationTile(32, 16, _cur_railtype, AXIS_X, _railstation.station_class, _railstation.station_type)) { |
761 if (!DrawStationTile(32, 16, _cur_railtype, AXIS_X, _railstation.station_class, _railstation.station_type)) { |
761 StationPickerDrawSprite(32, 16, _cur_railtype, INVALID_ROADTYPE, 2); |
762 StationPickerDrawSprite(32, 16, STATION_RAIL, _cur_railtype, INVALID_ROADTYPE, 2); |
762 } |
763 } |
763 _cur_dpi = old_dpi; |
764 _cur_dpi = old_dpi; |
764 } |
765 } |
765 |
766 |
766 /* Set up a clipping area for the '\' station preview */ |
767 /* Set up a clipping area for the '\' station preview */ |
767 if (FillDrawPixelInfo(&tmp_dpi, 75, 26 + y_offset, 66, 48)) { |
768 if (FillDrawPixelInfo(&tmp_dpi, 75, 26 + y_offset, 66, 48)) { |
768 old_dpi = _cur_dpi; |
769 old_dpi = _cur_dpi; |
769 _cur_dpi = &tmp_dpi; |
770 _cur_dpi = &tmp_dpi; |
770 if (!DrawStationTile(32, 16, _cur_railtype, AXIS_Y, _railstation.station_class, _railstation.station_type)) { |
771 if (!DrawStationTile(32, 16, _cur_railtype, AXIS_Y, _railstation.station_class, _railstation.station_type)) { |
771 StationPickerDrawSprite(32, 16, _cur_railtype, INVALID_ROADTYPE, 3); |
772 StationPickerDrawSprite(32, 16, STATION_RAIL, _cur_railtype, INVALID_ROADTYPE, 3); |
772 } |
773 } |
773 _cur_dpi = old_dpi; |
774 _cur_dpi = old_dpi; |
774 } |
775 } |
775 |
776 |
776 DrawStringCentered(74, 15 + y_offset, STR_3002_ORIENTATION, 0); |
777 DrawStringCentered(74, 15 + y_offset, STR_3002_ORIENTATION, 0); |