mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
tweak score layout, and remove a U8 that was overflowing on win32
This commit is contained in:
parent
7297ab4be8
commit
c496593800
2 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue