From 20f96a658dc3f60eec6db62fdeadd68ba7be2869 Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 15 Mar 2005 15:29:17 +0000 Subject: [PATCH] catch up with API change --- symbian/src/symdraw.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/symbian/src/symdraw.cpp b/symbian/src/symdraw.cpp index 37d6a9a40..64a934f88 100644 --- a/symbian/src/symdraw.cpp +++ b/symbian/src/symdraw.cpp @@ -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. */ static void -sym_draw_score_drawPlayer( DrawCtx* p_dctx, - XP_S16 playerNum, /* -1: don't use */ - XP_Rect* /*rInner*/, XP_Rect* rOuter, - DrawScoreInfo* dsi ) +sym_draw_score_drawPlayer( DrawCtx* p_dctx, XP_Rect* /*rInner*/, + XP_Rect* rOuter, DrawScoreInfo* dsi ) { const TInt KTurnIconWidth = 16; const TInt KNameColumnWidth = 90; @@ -343,10 +341,11 @@ sym_draw_score_drawPlayer( DrawCtx* p_dctx, drawBitmap( sctx, sctx->iRobotIcon, sctx->iRobotIconMask, &lRect ); } - if ( playerNum >= 0 && !dsi->selected ) { - sctx->iGC->SetPenColor( sctx->colors[playerNum + COLOR_PLAYER1] ); - } else { + XP_U16 playerNum = dsi->playerNum; + if ( dsi->selected ) { sctx->iGC->SetPenColor( sctx->colors[COLOR_WHITE] ); + } else { + sctx->iGC->SetPenColor( sctx->colors[playerNum + COLOR_PLAYER1] ); } sctx->iGC->SetBrushStyle( CGraphicsContext::ENullBrush );