From 5b03081d03dc5bfbe4f0c49750f31faf834345c8 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 31 Jan 2025 16:34:01 +0000 Subject: [PATCH] cif: TiPlaneRect const ripple --- cif/CIFgen.c | 10 +++++----- cif/CIFint.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cif/CIFgen.c b/cif/CIFgen.c index 2c57e50c..cfc8b9d3 100644 --- a/cif/CIFgen.c +++ b/cif/CIFgen.c @@ -79,7 +79,7 @@ static Plane *cifPlane; /* Plane acted on by search functions. */ static int cifScale; /* Scale factor to use on tiles. */ extern void cifClipPlane(Plane *plane, Rect *clip); -extern void cifGenClip(Rect *area, Rect *expanded, Rect *clip); +extern void cifGenClip(const Rect *area, Rect *expanded, Rect *clip); /* * ---------------------------------------------------------------------------- @@ -3995,7 +3995,7 @@ cifSquareGridFunc( void cifSrTiles( CIFOp *cifOp, /* Geometric operation being processed. */ - Rect *area, /* Area of Magic paint to consider. */ + const Rect *area, /* Area of Magic paint to consider. */ CellDef *cellDef, /* CellDef to search for paint. */ Plane *temps[], /* Planes to use for temporaries. */ int (*func)(), /* Search function to pass to DBSrPaintArea. */ @@ -4896,7 +4896,7 @@ cifInteractingRegions( Plane * CIFGenLayer( CIFOp *op, /* List of CIFOps telling how to make layer. */ - Rect *area, /* Area to consider when generating CIF. Only + const Rect *area, /* Area to consider when generating CIF. Only * material in this area will be considered, so * the caller should usually expand his desired * area by one CIF radius. @@ -5529,7 +5529,7 @@ void CIFGen( CellDef *cellDef, /* Cell for which CIF is to be generated. */ CellDef *origDef, /* Original cell, if different from cellDef */ - Rect *area, /* Any CIF overlapping this area (in coords + const Rect *area, /* Any CIF overlapping this area (in coords * of cellDef) will be generated. The CIF * will be clipped to this area. */ @@ -5695,7 +5695,7 @@ cifClipPlane( void cifGenClip( - Rect *area, /* Any CIF overlapping this area (in coords + const Rect *area, /* Any CIF overlapping this area (in coords * of cellDef) will be generated. The CIF * will be clipped to this area. */ diff --git a/cif/CIFint.h b/cif/CIFint.h index b49b21df..559daec8 100644 --- a/cif/CIFint.h +++ b/cif/CIFint.h @@ -329,10 +329,10 @@ typedef struct cifstyle extern bool CIFNameToMask(char *name, TileTypeBitMask *result, TileTypeBitMask *depend); extern void CIFGenSubcells(CellDef *def, Rect *area, Plane **output); extern void CIFGenArrays(CellDef *def, Rect *area, Plane **output); -extern void CIFGen(CellDef *cellDef, CellDef *origDef, Rect *area, Plane **planes, TileTypeBitMask *layers, +extern void CIFGen(CellDef *cellDef, CellDef *origDef, const Rect *area, Plane **planes, TileTypeBitMask *layers, bool replace, bool genAllPlanes, bool hier, ClientData clientdata); extern void CIFClearPlanes(Plane **planes); -extern Plane *CIFGenLayer(CIFOp *op, Rect *area, CellDef *cellDef, CellDef *origDef, Plane *temps[], +extern Plane *CIFGenLayer(CIFOp *op, const Rect *area, CellDef *cellDef, CellDef *origDef, Plane *temps[], bool hier, ClientData clientdata); extern void CIFInitCells(void); extern int cifHierCopyFunc(Tile *tile, TreeContext *cxp);