mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
When cell background changes to show focus draw cell chars in normal
color rather than white.
This commit is contained in:
parent
f28f5b80d3
commit
c293425d2e
1 changed files with 2 additions and 2 deletions
|
@ -364,7 +364,6 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
int flags )
|
||||
{
|
||||
int backColor;
|
||||
int foreColor = WHITE; // must be initialized :-(
|
||||
boolean empty = 0 != (flags & (CELL_DRAGSRC|CELL_ISEMPTY));
|
||||
boolean pending = 0 != (flags & CELL_HIGHLIGHT);
|
||||
|
||||
|
@ -375,6 +374,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
if ( owner < 0 ) {
|
||||
owner = 0;
|
||||
}
|
||||
int foreColor = m_playerColors[owner];
|
||||
|
||||
if ( 0 != (flags & CELL_ISCURSOR) ) {
|
||||
backColor = m_otherColors[CommonPrefs.COLOR_FOCUS];
|
||||
|
@ -382,9 +382,9 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
backColor = m_bonusColors[bonus];
|
||||
} else if ( pending ) {
|
||||
backColor = BLACK;
|
||||
foreColor = WHITE;
|
||||
} else {
|
||||
backColor = m_otherColors[CommonPrefs.COLOR_TILE_BACK];
|
||||
foreColor = m_playerColors[owner];
|
||||
}
|
||||
|
||||
fillRect( rect, backColor );
|
||||
|
|
Loading…
Add table
Reference in a new issue