205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
}
}
/* Identify rows where the primary parent is off screen. Assign
** each to a rail and draw descenders to the bottom of the screen.
*/
for(pRow=p->pFirst; pRow; pRow=pRow->pNext){
if( pRow->nParent>0 && !bag_find(&allRids,pRow->aParent[0]) ){
pRow->iRail = ++p->mxRail;
pRow->bDescender = 1;
mask = 1<<(pRow->iRail);
for(pDesc=pRow; pDesc; pDesc=pDesc->pNext){
pDesc->railInUse |= mask;
}
}
}
|
|
|
|
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
}
}
/* Identify rows where the primary parent is off screen. Assign
** each to a rail and draw descenders to the bottom of the screen.
*/
for(pRow=p->pFirst; pRow; pRow=pRow->pNext){
if( pRow->nParent==0 || !bag_find(&allRids,pRow->aParent[0]) ){
pRow->iRail = ++p->mxRail;
pRow->bDescender = pRow->nParent>0;
mask = 1<<(pRow->iRail);
for(pDesc=pRow; pDesc; pDesc=pDesc->pNext){
pDesc->railInUse |= mask;
}
}
}
|