sim: DBSrPaintArea() cb_database_srpaintarea_t SimSelectFunc()

This commit is contained in:
Darryl L. Miles 2025-01-31 20:09:46 +00:00 committed by R. Timothy Edwards
parent dceb5cfad7
commit 56bdf9ce28
1 changed files with 6 additions and 4 deletions

View File

@ -262,7 +262,7 @@ SimSelectArea(
const Rect *rect) const Rect *rect)
{ {
int plane; int plane;
int SimSelectFunc(); int SimSelectFunc(Tile *tile, ClientData cdata); /* cb_database_srpaintarea_t (TileListElt **pHead) */
/* only need to extract node names if the selection has changed or /* only need to extract node names if the selection has changed or
* if node aliases are to be printed. * if node aliases are to be printed.
@ -278,7 +278,7 @@ SimSelectArea(
{ {
(void) DBSrPaintArea((Tile *) NULL, SelectDef->cd_planes[plane], (void) DBSrPaintArea((Tile *) NULL, SelectDef->cd_planes[plane],
&TiPlaneRect, &DBAllButSpaceAndDRCBits, &TiPlaneRect, &DBAllButSpaceAndDRCBits,
SimSelectFunc, (ClientData) &NodeList); SimSelectFunc, PTR2CD(&NodeList));
} }
HashKill(&SimAbortSeenTbl); HashKill(&SimAbortSeenTbl);
@ -318,11 +318,13 @@ SimSelectArea(
* ---------------------------------------------------------------------------- * ----------------------------------------------------------------------------
*/ */
/** @typedef cb_database_srpaintarea_t */
int int
SimSelectFunc( SimSelectFunc(
Tile *tile, /* Tile in SelectDef. */ Tile *tile, /* Tile in SelectDef. */
TileListElt **pHead) /* list of node names found */ ClientData cdata) /* list of node names found (TileListElt **pHead) */
{ {
TileListElt **pHead = (TileListElt **)CD2PTR(cdata);
TileTypeBitMask mask; TileTypeBitMask mask;
SearchContext scx; SearchContext scx;
DBWclientRec *crec; DBWclientRec *crec;