mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 13:03:11 +01:00
Apply clang-format
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user