static int GRowColFindXMax(GRowCol *grc) { int i, width=0, temp; for ( i=0; i<grc->ltot; ++i ) { temp = GTextInfoGetWidth(grc->g.base,grc->ti[i],grc->font); if ( temp>width ) width=temp; } grc->xmax = width; return( width ); }
static int GListFindXMax(GDList *gl) { int i, width=0, temp; for ( i=0; i<gl->ltot; ++i ) { temp = GTextInfoGetWidth(gl->g.base,gl->ti[i],gl->font); if ( temp>width ) width=temp; } gl->xmax = width; return( width ); }