mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +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();
|
figureFontDims();
|
||||||
|
|
||||||
clearToBack( rect );
|
|
||||||
|
|
||||||
if ( owner < 0 ) {
|
if ( owner < 0 ) {
|
||||||
owner = 0;
|
owner = 0;
|
||||||
}
|
}
|
||||||
|
@ -456,7 +454,11 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
||||||
if ( 0 != (flags & CELL_ISCURSOR) ) {
|
if ( 0 != (flags & CELL_ISCURSOR) ) {
|
||||||
backColor = m_otherColors[CommonPrefs.COLOR_FOCUS];
|
backColor = m_otherColors[CommonPrefs.COLOR_FOCUS];
|
||||||
} else if ( empty ) {
|
} else if ( empty ) {
|
||||||
backColor = m_bonusColors[bonus];
|
if ( 0 == bonus ) {
|
||||||
|
backColor = m_otherColors[CommonPrefs.COLOR_BKGND];
|
||||||
|
} else {
|
||||||
|
backColor = m_bonusColors[bonus];
|
||||||
|
}
|
||||||
} else if ( pending ) {
|
} else if ( pending ) {
|
||||||
backColor = BLACK;
|
backColor = BLACK;
|
||||||
foreColor = WHITE;
|
foreColor = WHITE;
|
||||||
|
@ -752,7 +754,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
||||||
|
|
||||||
private void clearToBack( Rect rect )
|
private void clearToBack( Rect rect )
|
||||||
{
|
{
|
||||||
fillRect( rect, WHITE );
|
fillRect( rect, m_otherColors[CommonPrefs.COLOR_BKGND] );
|
||||||
}
|
}
|
||||||
|
|
||||||
private void figureFontDims()
|
private void figureFontDims()
|
||||||
|
|
Loading…
Add table
Reference in a new issue