mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
* Part of #12017 - create gfx_draw_sprite overload Part 1. Creates the overload and replaces about a half of the calls since there are too many for one PR. Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
This commit is contained in:
@@ -70,10 +70,9 @@ void FootpathObject::Unload()
|
||||
|
||||
void FootpathObject::DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int32_t height) const
|
||||
{
|
||||
int32_t x = width / 2;
|
||||
int32_t y = height / 2;
|
||||
gfx_draw_sprite(dpi, _pathSurfaceEntry.preview, x - 49, y - 17, 0);
|
||||
gfx_draw_sprite(dpi, _queueEntry.preview, x + 4, y - 17, 0);
|
||||
auto screenCoords = ScreenCoordsXY{ width / 2, height / 2 };
|
||||
gfx_draw_sprite(dpi, _pathSurfaceEntry.preview, screenCoords - ScreenCoordsXY{ 49, 17 }, 0);
|
||||
gfx_draw_sprite(dpi, _queueEntry.preview, screenCoords + ScreenCoordsXY{ 4, -17 }, 0);
|
||||
}
|
||||
|
||||
static RailingEntrySupportType ParseSupportType(const std::string& s)
|
||||
|
||||
Reference in New Issue
Block a user