1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Apply clang-format

This commit is contained in:
ζeh Matt
2024-02-18 21:12:46 +02:00
parent bdcfa5af8f
commit f7682f6b13
3 changed files with 4 additions and 7 deletions

View File

@@ -267,8 +267,7 @@ void ViewportsInvalidate(const CoordsXYZ& pos, int32_t width, int32_t minHeight,
{
auto screenCoords = Translate3DTo2DWithZ(vp.rotation, pos);
auto screenPos = ScreenRect(
screenCoords - ScreenCoordsXY{ width, minHeight },
screenCoords + ScreenCoordsXY{ width, maxHeight });
screenCoords - ScreenCoordsXY{ width, minHeight }, screenCoords + ScreenCoordsXY{ width, maxHeight });
ViewportInvalidate(&vp, screenPos);
}

View File

@@ -99,10 +99,8 @@ void EntityPaintSetup(PaintSession& session, const CoordsXY& pos)
screenCoords - ScreenCoordsXY{ spr->SpriteData.Width, spr->SpriteData.HeightMin },
screenCoords + ScreenCoordsXY{ spr->SpriteData.Width, spr->SpriteData.HeightMax });
if (session.DPI.y + session.DPI.height <= spriteRect.GetTop()
|| spriteRect.GetBottom() <= session.DPI.y
|| session.DPI.x + session.DPI.width <= spriteRect.GetLeft()
|| spriteRect.GetRight() <= session.DPI.x)
if (session.DPI.y + session.DPI.height <= spriteRect.GetTop() || spriteRect.GetBottom() <= session.DPI.y
|| session.DPI.x + session.DPI.width <= spriteRect.GetLeft() || spriteRect.GetRight() <= session.DPI.x)
{
continue;
}

View File

@@ -590,7 +590,7 @@ static void PaintAttachedPS(DrawPixelInfo& dpi, PaintStruct* ps, uint32_t viewFl
static void PaintPSImageWithBoundingBoxes(PaintSession& session, PaintStruct* ps, ImageId imageId, int32_t x, int32_t y)
{
auto& dpi = session.DPI;
const uint8_t colour = BoundBoxDebugColours[EnumValue(ps->InteractionItem)];
const uint8_t rotation = session.CurrentRotation;