1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Refactor Viewport.cpp to use ScreenRect (#15790)

This commit is contained in:
Sijmen
2021-10-27 05:13:38 +02:00
committed by GitHub
parent ea3463399f
commit cec8447c6f
10 changed files with 67 additions and 85 deletions

View File

@@ -126,7 +126,7 @@ static std::vector<RecordedPaintSession> extract_paint_session(std::string_view
dpi.bits = static_cast<uint8_t*>(malloc(dpi.width * dpi.height));
log_info("Obtaining sprite data...");
viewport_render(&dpi, &viewport, 0, 0, viewport.width, viewport.height, &sessions);
viewport_render(&dpi, &viewport, { { 0, 0 }, { viewport.width, viewport.height } }, &sessions);
free(dpi.bits);
drawing_engine_dispose();