plowPropagateRect() pass by-pointer const TileTypeBitMask* instead of by-value
sizeof(TileTypeBitMask) == 32
This commit is contained in:
parent
8ee328811c
commit
93054eb4e6
|
|
@ -150,7 +150,7 @@ int plowInitialPaint(), plowInitialCell();
|
||||||
int plowUpdatePaintTile(), plowUpdateCell();
|
int plowUpdatePaintTile(), plowUpdateCell();
|
||||||
bool plowPastBoundary();
|
bool plowPastBoundary();
|
||||||
bool plowPropagateSel();
|
bool plowPropagateSel();
|
||||||
bool plowPropagateRect();
|
bool plowPropagateRect(CellDef *def, Rect *userRect, const TileTypeBitMask *lcp, Rect *changedArea);
|
||||||
PlowRule *plowBuildWidthRules();
|
PlowRule *plowBuildWidthRules();
|
||||||
|
|
||||||
void plowMergeBottom(Tile *, Plane *);
|
void plowMergeBottom(Tile *, Plane *);
|
||||||
|
|
@ -519,7 +519,7 @@ Plow(
|
||||||
*/
|
*/
|
||||||
firstTime = TRUE;
|
firstTime = TRUE;
|
||||||
TTMaskCom2(&lc, &layers);
|
TTMaskCom2(&lc, &layers);
|
||||||
while (plowPropagateRect(def, userRect, lc, &changedArea))
|
while (plowPropagateRect(def, userRect, &lc, &changedArea))
|
||||||
firstTime = FALSE;
|
firstTime = FALSE;
|
||||||
|
|
||||||
if (!GEO_RECTNULL(&changedArea))
|
if (!GEO_RECTNULL(&changedArea))
|
||||||
|
|
@ -652,12 +652,13 @@ done:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool
|
bool
|
||||||
plowPropagateRect(def, userRect, lc, changedArea)
|
plowPropagateRect(
|
||||||
CellDef *def; /* Def being plowed */
|
CellDef *def, /* Def being plowed */
|
||||||
Rect *userRect; /* User-specified plow (we transform this) */
|
Rect *userRect, /* User-specified plow (we transform this) */
|
||||||
TileTypeBitMask lc; /* Complement of set of layers to plow */
|
const TileTypeBitMask *lcp, /* Complement of set of layers to plow */
|
||||||
Rect *changedArea; /* Set to bounding box around area modified */
|
Rect *changedArea) /* Set to bounding box around area modified */
|
||||||
{
|
{
|
||||||
|
TileTypeBitMask lc = *lcp; /* TTMaskCopy(&lc, lcp) */
|
||||||
Rect cellPlowRect, plowRect, r;
|
Rect cellPlowRect, plowRect, r;
|
||||||
#ifndef NO_RUSAGE
|
#ifndef NO_RUSAGE
|
||||||
struct rusage t1, t2;
|
struct rusage t1, t2;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue