Skip to content

Clean up PaintAddImageAsParentRotated() function and calls#19390

Merged
duncanspumpkin merged 2 commits into
OpenRCT2:developfrom
Gymnasiast:refactor/p-a-i-a-parent-rotated
Feb 13, 2023
Merged

Clean up PaintAddImageAsParentRotated() function and calls#19390
duncanspumpkin merged 2 commits into
OpenRCT2:developfrom
Gymnasiast:refactor/p-a-i-a-parent-rotated

Conversation

@Gymnasiast

Copy link
Copy Markdown
Member

This reduces the PaintAddImageAsParentRotated() functions to two. One "main" function, and one helper function that allows omitting the bound box offset (taking the regular offset as the bound box offset).

Calls to PaintAddImageAsParentRotated() that used separate CoordsXYZ for the boundbox offset and size have all been autoreplaced using a regular expression. This makes the diff rather big, but due to the automatic nature I expect reviewing a few files to be sufficient.

@Gymnasiast Gymnasiast force-pushed the refactor/p-a-i-a-parent-rotated branch from 71af161 to 38b057a Compare February 13, 2023 19:51
@duncanspumpkin duncanspumpkin added this to the v0.4.4 milestone Feb 13, 2023
@duncanspumpkin

Copy link
Copy Markdown
Contributor

Looks sensible enough. For anyone wondering was done with a regex to move the params into the bbox struct.

@duncanspumpkin duncanspumpkin merged commit d8c09e5 into OpenRCT2:develop Feb 13, 2023
@Gymnasiast Gymnasiast deleted the refactor/p-a-i-a-parent-rotated branch February 13, 2023 20:36
karst added a commit to karst/OpenRCT2 that referenced this pull request Feb 14, 2023
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants