draw the X at 7x7 transluscent if in trade mode.

This commit is contained in:
Andy2 2011-09-01 18:52:21 -07:00
parent 8e45dcd720
commit 9a60bcf265

View file

@ -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;
}