1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-03 18:07:53 +01:00

Use const ImageId in drawing functions

This commit is contained in:
Gymnasiast
2022-09-28 23:00:58 +02:00
parent d352ca3d01
commit cedccf9b0e
15 changed files with 68 additions and 80 deletions

View File

@@ -151,8 +151,8 @@ public:
// Locate mechanic button image
const auto& widget = widgets[WIDX_HIDE_STAFF];
auto screenCoords = windowPos + ScreenCoordsXY{ widget.left, widget.top };
gfx_draw_sprite(
&dpi, (gStaffMechanicColour << 24) | IMAGE_TYPE_REMAP | IMAGE_TYPE_REMAP_2_PLUS | SPR_MECHANIC, screenCoords, 0);
auto image = ImageId(SPR_MECHANIC, COLOUR_BLACK, gStaffMechanicColour);
gfx_draw_sprite(&dpi, image, screenCoords);
}
private: