mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
fix reverse-highlighting of cells
This commit is contained in:
parent
45d651e091
commit
1550aefc06
1 changed files with 8 additions and 3 deletions
|
@ -151,9 +151,14 @@ palm_clr_draw_drawCell( DrawCtx* p_dctx, XP_Rect* rect,
|
|||
color = dctx->drawingPrefs->drawColors[index];
|
||||
WinSetBackColor( color );
|
||||
|
||||
index = (owner >= 0)? COLOR_PLAYER1 + owner: COLOR_BLACK;
|
||||
color = dctx->drawingPrefs->drawColors[index];
|
||||
if ( !!letters ) {
|
||||
if ( (owner >= 0) && !isPending ) {
|
||||
index = COLOR_PLAYER1 + owner;
|
||||
} else {
|
||||
index = COLOR_BLACK;
|
||||
}
|
||||
|
||||
color = dctx->drawingPrefs->drawColors[index];
|
||||
WinSetTextColor( color );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue