mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
fix to compile and save player score rect info for non-keyboard-nav case
This commit is contained in:
parent
065446def4
commit
c8cd2d500a
1 changed files with 7 additions and 3 deletions
|
@ -127,12 +127,16 @@ drawScoreBoard( BoardCtxt* board )
|
|||
model_getNumTilesTotal( model, ii );
|
||||
}
|
||||
|
||||
draw_score_drawPlayers( board->draw, &scoreRect, nPlayers, data, playerRects );
|
||||
draw_score_drawPlayers( board->draw, &scoreRect, nPlayers, data,
|
||||
playerRects );
|
||||
for ( ii = 0; ii < nPlayers; ++ii ) {
|
||||
XP_MEMCPY( &board->pti[ii].scoreRects, &playerRects[ii],
|
||||
XP_Rect* rp = &playerRects[ii];
|
||||
board->pti[ii].scoreDims = isVertical ? rp->height : rp->width;
|
||||
#ifdef KEYBOARD_NAV
|
||||
XP_MEMCPY( &board->pti[ii].scoreRects, rp,
|
||||
sizeof(board->pti[ii].scoreRects) );
|
||||
#endif
|
||||
}
|
||||
|
||||
draw_objFinished( board->draw, OBJ_SCORE,
|
||||
&board->scoreBdBounds, dfs );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue