plowSrShadowInitial() pass by-pointer const TileTypeBitMask* instead of by-value
sizeof(TileTypeBitMask) == 32
This commit is contained in:
parent
86bb97948f
commit
8ee328811c
|
|
@ -737,7 +737,7 @@ plowPropagateRect(def, userRect, lc, changedArea)
|
||||||
/* Add the initial edges */
|
/* Add the initial edges */
|
||||||
for (pNum = PL_TECHDEPBASE; pNum < DBNumPlanes; pNum++)
|
for (pNum = PL_TECHDEPBASE; pNum < DBNumPlanes; pNum++)
|
||||||
(void) plowSrShadowInitial(pNum, &plowRect,
|
(void) plowSrShadowInitial(pNum, &plowRect,
|
||||||
lc, plowInitialPaint, INT2CD(plowRect.r_xtop));
|
&lc, plowInitialPaint, INT2CD(plowRect.r_xtop));
|
||||||
|
|
||||||
/* Find any subcells crossed by the plow */
|
/* Find any subcells crossed by the plow */
|
||||||
(void) DBSrCellPlaneArea(plowYankDef->cd_cellPlane,
|
(void) DBSrCellPlaneArea(plowYankDef->cd_cellPlane,
|
||||||
|
|
|
||||||
|
|
@ -357,16 +357,17 @@ plowShadowRHS(tp, s, bottomLeft)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
plowSrShadowInitial(pNum, area, okTypes, proc, cdata)
|
plowSrShadowInitial(
|
||||||
int pNum; /* Plane from plowYankDef to search */
|
int pNum, /* Plane from plowYankDef to search */
|
||||||
Rect *area; /* Area to search. Edges coincident with the
|
Rect *area, /* Area to search. Edges coincident with the
|
||||||
* right-hand side of this area are not seen;
|
* right-hand side of this area are not seen;
|
||||||
* they must lie to the left of area->r_xtop.
|
* they must lie to the left of area->r_xtop.
|
||||||
*/
|
*/
|
||||||
TileTypeBitMask okTypes;
|
const TileTypeBitMask *okTypesp,
|
||||||
int (*proc)(); /* Function to apply at each edge */
|
int (*proc)(), /* Function to apply at each edge */
|
||||||
ClientData cdata; /* Additional argument to pass to (*proc)() */
|
ClientData cdata) /* Additional argument to pass to (*proc)() */
|
||||||
{
|
{
|
||||||
|
TileTypeBitMask okTypes = *okTypesp; /* TTMaskCopy(&okTypes, okTypesp) */
|
||||||
Plane *plane = plowYankDef->cd_planes[pNum];
|
Plane *plane = plowYankDef->cd_planes[pNum];
|
||||||
struct shadow s;
|
struct shadow s;
|
||||||
Tile *tp;
|
Tile *tp;
|
||||||
|
|
|
||||||
|
|
@ -266,7 +266,7 @@ extern int plowSrFinalArea();
|
||||||
extern void plowSrOutline(int pNum, Point *startPoint, const TileTypeBitMask *insideTypesp, int initialDir, int dirMask, int (*proc)(), ClientData cdata);
|
extern void plowSrOutline(int pNum, Point *startPoint, const TileTypeBitMask *insideTypesp, int initialDir, int dirMask, int (*proc)(), ClientData cdata);
|
||||||
extern int plowSrShadow(int pNum, Rect *area, const TileTypeBitMask *okTypesp, int (*proc)(), ClientData cdata);
|
extern int plowSrShadow(int pNum, Rect *area, const TileTypeBitMask *okTypesp, int (*proc)(), ClientData cdata);
|
||||||
extern int plowSrShadowBack(int pNum, Rect *area, const TileTypeBitMask *okTypesp, int (*proc)(), ClientData cdata);
|
extern int plowSrShadowBack(int pNum, Rect *area, const TileTypeBitMask *okTypesp, int (*proc)(), ClientData cdata);
|
||||||
extern int plowSrShadowInitial();
|
extern int plowSrShadowInitial(int pNum, Rect *area, const TileTypeBitMask *okTypesp, int (*proc)(), ClientData cdata);
|
||||||
extern bool plowYankMore();
|
extern bool plowYankMore();
|
||||||
extern void PlowRandomTest();
|
extern void PlowRandomTest();
|
||||||
extern void plowDebugInit();
|
extern void plowDebugInit();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue