make remDim 16-bit so doesn't overflow on large-screened devices

This commit is contained in:
ehouse 2006-02-14 04:53:45 +00:00
parent c42c6a6551
commit cf602d7905
2 changed files with 3 additions and 4 deletions

View file

@ -1230,9 +1230,8 @@ drawScoreBoard( BoardCtxt* board )
*adjustPt += remDim;
}
XP_ASSERT( remDim <= 0x00FF );
board->remDim = (XP_U8)remDim; /* save now so register can be
reused */
board->remDim = remDim; /* save now so register can be reused */
for ( dp = datum, i = 0; i < nPlayers; ++dp, ++i ) {
XP_Rect innerRect;
XP_U16 dim = isVertical? dp->height:dp->width;

View file

@ -131,12 +131,12 @@ struct BoardCtxt {
XP_Rect scoreBdBounds;
XP_Rect timerBounds;
XP_U8 selPlayer; /* which player is selected (!= turn) */
XP_U8 remDim; /* width (or ht) of the "rem:" string in scoreboard */
/* tray state */
XP_U8 trayScaleH;
XP_U8 trayScaleV;
XP_Rect trayBounds;
XP_U16 remDim; /* width (or ht) of the "rem:" string in scoreboard */
XP_U8 dividerWidth; /* 0 would mean invisible */
XP_Bool dividerInvalid;