1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Make ViewportPaint static, refactor TrackDesign to use ViewportRender

This commit is contained in:
ζeh Matt
2024-02-18 02:34:21 +02:00
parent 33a5ee2160
commit 1a197af715
3 changed files with 4 additions and 3 deletions

View File

@@ -2084,7 +2084,7 @@ void TrackDesignDrawPreview(TrackDesign* td6, uint8_t* pixels)
gCurrentRotation = i;
view.viewPos = Translate3DTo2DWithZ(i, centre) - offset;
ViewportPaint(&view, dpi, { view.viewPos, view.viewPos + ScreenCoordsXY{ size_x, size_y } });
ViewportRender(dpi, &view, { {}, ScreenCoordsXY{ size_x, size_y } });
dpi.bits += TRACK_PREVIEW_IMAGE_SIZE;
}