tweak score layout, and remove a U8 that was overflowing on win32

This commit is contained in:
ehouse 2006-05-10 13:42:44 +00:00
parent 7297ab4be8
commit c496593800
2 changed files with 1 additions and 6 deletions

View file

@ -1210,11 +1210,7 @@ drawScoreBoard( BoardCtxt* board )
here is for the scores to be closer to each other than they are
to the rem: string and timer on the ends. */
nShares = nPlayers;
if ( remDim > 0 ) {
++nShares;
}
XP_ASSERT( *adjustDim >= totalDim );
/* XP_LOGF( "*adjustDim=%d, totalDim=%d", *adjustDim, totalDim ); */
extra = (*adjustDim - totalDim) / nShares;
/* at this point, the scoreRect should be anchored at the
@ -1226,7 +1222,6 @@ drawScoreBoard( BoardCtxt* board )
draw_drawRemText( board->draw, &scoreRect, &scoreRect,
nTilesInPool );
remDim += extra;
*adjustPt += remDim;
}

View file

@ -125,7 +125,7 @@ struct BoardCtxt {
#endif
XP_U8 dividerLoc[MAX_NUM_PLAYERS]; /* 0 means left of 0th tile, etc. */
XP_U8 scoreDims[MAX_NUM_PLAYERS];
XP_U16 scoreDims[MAX_NUM_PLAYERS];
/* scoreboard state */
XP_Rect scoreBdBounds;