mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
make remDim 16-bit so doesn't overflow on large-screened devices
This commit is contained in:
parent
92fb9fb9b2
commit
dd9298e95f
2 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue