mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
catch up with API change
This commit is contained in:
parent
cb674f16ac
commit
20f96a658d
1 changed files with 6 additions and 7 deletions
|
@ -310,10 +310,8 @@ sym_draw_measureScoreText( DrawCtx* p_dctx, XP_Rect* /*r*/,
|
||||||
* robot-ness and local/remoteness with colors? Turn is with an icon.
|
* robot-ness and local/remoteness with colors? Turn is with an icon.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
sym_draw_score_drawPlayer( DrawCtx* p_dctx,
|
sym_draw_score_drawPlayer( DrawCtx* p_dctx, XP_Rect* /*rInner*/,
|
||||||
XP_S16 playerNum, /* -1: don't use */
|
XP_Rect* rOuter, DrawScoreInfo* dsi )
|
||||||
XP_Rect* /*rInner*/, XP_Rect* rOuter,
|
|
||||||
DrawScoreInfo* dsi )
|
|
||||||
{
|
{
|
||||||
const TInt KTurnIconWidth = 16;
|
const TInt KTurnIconWidth = 16;
|
||||||
const TInt KNameColumnWidth = 90;
|
const TInt KNameColumnWidth = 90;
|
||||||
|
@ -343,10 +341,11 @@ sym_draw_score_drawPlayer( DrawCtx* p_dctx,
|
||||||
drawBitmap( sctx, sctx->iRobotIcon, sctx->iRobotIconMask, &lRect );
|
drawBitmap( sctx, sctx->iRobotIcon, sctx->iRobotIconMask, &lRect );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( playerNum >= 0 && !dsi->selected ) {
|
XP_U16 playerNum = dsi->playerNum;
|
||||||
sctx->iGC->SetPenColor( sctx->colors[playerNum + COLOR_PLAYER1] );
|
if ( dsi->selected ) {
|
||||||
} else {
|
|
||||||
sctx->iGC->SetPenColor( sctx->colors[COLOR_WHITE] );
|
sctx->iGC->SetPenColor( sctx->colors[COLOR_WHITE] );
|
||||||
|
} else {
|
||||||
|
sctx->iGC->SetPenColor( sctx->colors[playerNum + COLOR_PLAYER1] );
|
||||||
}
|
}
|
||||||
sctx->iGC->SetBrushStyle( CGraphicsContext::ENullBrush );
|
sctx->iGC->SetBrushStyle( CGraphicsContext::ENullBrush );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue