mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
log pending score drawing
I'll occasionally see the pending score in tray drawn dim after hint fails to find a move, but can't reproduce. So add logging.
This commit is contained in:
parent
c7bcccf979
commit
2c153d1b9e
1 changed files with 4 additions and 1 deletions
|
@ -510,7 +510,9 @@ public class BoardCanvas extends Canvas implements DrawCtx {
|
|||
public void score_pendingScore( Rect rect, int score, int playerNum,
|
||||
int curTurn, int flags )
|
||||
{
|
||||
String text = score >= 0? String.format( "%d", score ) : "??";
|
||||
Log.d( TAG, "pendingScore(playerNum=%d, curTurn=%d)",
|
||||
playerNum, curTurn );
|
||||
|
||||
int otherIndx = (0 == (flags & CELL_ISCURSOR))
|
||||
? CommonPrefs.COLOR_BACKGRND : CommonPrefs.COLOR_FOCUS;
|
||||
++rect.top;
|
||||
|
@ -522,6 +524,7 @@ public class BoardCanvas extends Canvas implements DrawCtx {
|
|||
}
|
||||
m_fillPaint.setColor( playerColor );
|
||||
|
||||
String text = score >= 0? String.format( "%d", score ) : "??";
|
||||
rect.bottom -= rect.height() / 2;
|
||||
drawCentered( text, rect, null );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue