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
|
@ -141,7 +141,7 @@ palm_clr_draw_drawCell( DrawCtx* p_dctx, XP_Rect* rect,
|
||||||
if ( isPending ) {
|
if ( isPending ) {
|
||||||
/* don't color background if will invert */
|
/* don't color background if will invert */
|
||||||
index = COLOR_WHITE;
|
index = COLOR_WHITE;
|
||||||
} else if ( !!bitmap || (!!letters && XP_STRLEN((const char*)letters) > 0) ) {
|
} else if ( !!bitmap || (!!letters && XP_STRLEN((const char*)letters) > 0)){
|
||||||
index = COLOR_TILE;
|
index = COLOR_TILE;
|
||||||
} else if ( bonus == BONUS_NONE ) {
|
} else if ( bonus == BONUS_NONE ) {
|
||||||
index = COLOR_EMPTY;
|
index = COLOR_EMPTY;
|
||||||
|
@ -151,9 +151,14 @@ palm_clr_draw_drawCell( DrawCtx* p_dctx, XP_Rect* rect,
|
||||||
color = dctx->drawingPrefs->drawColors[index];
|
color = dctx->drawingPrefs->drawColors[index];
|
||||||
WinSetBackColor( color );
|
WinSetBackColor( color );
|
||||||
|
|
||||||
index = (owner >= 0)? COLOR_PLAYER1 + owner: COLOR_BLACK;
|
|
||||||
color = dctx->drawingPrefs->drawColors[index];
|
|
||||||
if ( !!letters ) {
|
if ( !!letters ) {
|
||||||
|
if ( (owner >= 0) && !isPending ) {
|
||||||
|
index = COLOR_PLAYER1 + owner;
|
||||||
|
} else {
|
||||||
|
index = COLOR_BLACK;
|
||||||
|
}
|
||||||
|
|
||||||
|
color = dctx->drawingPrefs->drawColors[index];
|
||||||
WinSetTextColor( color );
|
WinSetTextColor( color );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue