use the new empty/background color

This commit is contained in:
eehouse 2010-04-17 04:20:36 +00:00
parent 70554b869f
commit c6c59d57f8

View file

@ -446,8 +446,6 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
figureFontDims();
clearToBack( rect );
if ( owner < 0 ) {
owner = 0;
}
@ -456,7 +454,11 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
if ( 0 != (flags & CELL_ISCURSOR) ) {
backColor = m_otherColors[CommonPrefs.COLOR_FOCUS];
} else if ( empty ) {
backColor = m_bonusColors[bonus];
if ( 0 == bonus ) {
backColor = m_otherColors[CommonPrefs.COLOR_BKGND];
} else {
backColor = m_bonusColors[bonus];
}
} else if ( pending ) {
backColor = BLACK;
foreColor = WHITE;
@ -752,7 +754,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
private void clearToBack( Rect rect )
{
fillRect( rect, WHITE );
fillRect( rect, m_otherColors[CommonPrefs.COLOR_BKGND] );
}
private void figureFontDims()