mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
draw the X at 7x7 transluscent if in trade mode.
This commit is contained in:
parent
8e45dcd720
commit
9a60bcf265
1 changed files with 3 additions and 1 deletions
|
@ -44,6 +44,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
private static final float MIN_FONT_DIPS = 14.0f;
|
||||
|
||||
private static Bitmap s_bitmap; // the board
|
||||
private static final int IN_TRADE_ALPHA = 0x3FFFFFFF;
|
||||
|
||||
private Context m_context;
|
||||
private Paint m_drawPaint;
|
||||
|
@ -510,6 +511,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
if ( empty ) {
|
||||
if ( (CELL_ISSTAR & flags) != 0 ) {
|
||||
m_origin.setBounds( rect );
|
||||
m_origin.setAlpha( m_inTrade? IN_TRADE_ALPHA >> 24 : 255 );
|
||||
m_origin.draw( m_canvas );
|
||||
} else if ( null != bonusStr ) {
|
||||
int color = m_otherColors[CommonPrefs.COLOR_BONUSHINT];
|
||||
|
@ -926,7 +928,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
private int adjustColor( int color )
|
||||
{
|
||||
if ( m_inTrade ) {
|
||||
color = color & 0x3FFFFFFF;
|
||||
color = color & IN_TRADE_ALPHA;
|
||||
}
|
||||
return color;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue