mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
Make GfxDrawSprite() take reference
This commit is contained in:
committed by
duncanspumpkin
parent
437329bb13
commit
9c2d5b9fef
@@ -93,7 +93,7 @@ void MusicObject::DrawPreview(DrawPixelInfo& dpi, int32_t width, int32_t height)
|
||||
int32_t x = width / 2;
|
||||
int32_t y = height / 2;
|
||||
if (_hasPreview)
|
||||
GfxDrawSprite(&dpi, ImageId(_previewImageId), { 0, 0 });
|
||||
GfxDrawSprite(dpi, ImageId(_previewImageId), { 0, 0 });
|
||||
else
|
||||
DrawTextBasic(dpi, { x, y }, STR_WINDOW_NO_IMAGE, {}, { TextAlignment::CENTRE });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user