mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
use the new empty/background color
This commit is contained in:
parent
70554b869f
commit
c6c59d57f8
1 changed files with 6 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue