mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 21:43:06 +01:00
Use new ImageId in most object previews
This commit is contained in:
@@ -77,9 +77,11 @@ void BannerObject::DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int32_t he
|
||||
{
|
||||
auto screenCoords = ScreenCoordsXY{ width / 2, height / 2 };
|
||||
|
||||
uint32_t imageId = 0x20D00000 | _legacyType.image;
|
||||
gfx_draw_sprite(dpi, imageId + 0, screenCoords + ScreenCoordsXY{ -12, 8 }, 0);
|
||||
gfx_draw_sprite(dpi, imageId + 1, screenCoords + ScreenCoordsXY{ -12, 8 }, 0);
|
||||
auto image0 = ImageId(_legacyType.image, COLOUR_BORDEAUX_RED);
|
||||
auto image1 = ImageId(_legacyType.image + 1, COLOUR_BORDEAUX_RED);
|
||||
|
||||
gfx_draw_sprite(dpi, image0, screenCoords + ScreenCoordsXY{ -12, 8 });
|
||||
gfx_draw_sprite(dpi, image1, screenCoords + ScreenCoordsXY{ -12, 8 });
|
||||
}
|
||||
|
||||
void BannerObject::ReadJson(IReadObjectContext* context, json_t& root)
|
||||
|
||||
Reference in New Issue
Block a user