Clean up call to PaintAddImageAsParent()

This commit is contained in:
Gymnasiast 2023-02-13 23:37:50 +01:00
parent d3ea4bfbc8
commit 8b2d3937fd
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 3 additions and 8 deletions

View File

@ -843,16 +843,11 @@ bool MetalASupportsPaintSetup(
uint8_t ebp = esi[segment * 8 + 1];
int8_t xOffset = SupportBoundBoxes[segment].x;
int8_t yOffset = SupportBoundBoxes[segment].y;
xOffset += Loc97B052[ebp].x;
yOffset += Loc97B052[ebp].y;
int16_t boundBoxLengthX = _97B062[ebp].x;
int16_t boundBoxLengthY = _97B062[ebp].y;
auto offset = CoordsXYZ{ SupportBoundBoxes[segment] + Loc97B052[ebp], height };
auto boundBoxLength = CoordsXYZ(_97B062[ebp], 1);
auto image_id = imageTemplate.WithIndex(_metalSupportTypeToCrossbeamImages[supportType][ebp]);
PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { boundBoxLengthX, boundBoxLengthY, 1 });
PaintAddImageAsParent(session, image_id, offset, boundBoxLength);
segment = newSegment;
}