1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Add comment about remX, remY

This commit is contained in:
Ted John
2020-08-26 18:56:58 +01:00
parent 65e3d20156
commit 3a0bff4b93

View File

@@ -110,6 +110,11 @@ struct rct_drawpixelinfo
int16_t pitch{}; // note: this is actually (pitch - width)
ZoomLevel zoom_level{};
/**
* As x and y are based on 1:1 units, zooming in will cause a reduction in precision when mapping zoomed-in
* pixels to 1:1 pixels. When x, y are not a multiple of the zoom level, the remainder will be non-zero.
* The drawing of sprites will need to be offset by this amount.
*/
uint8_t remX{};
uint8_t remY{};