From 9a60bcf2655f4415d4f8130b9ca3ce56a594cf93 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Thu, 1 Sep 2011 18:52:21 -0700 Subject: [PATCH] draw the X at 7x7 transluscent if in trade mode. --- .../XWords4/src/org/eehouse/android/xw4/BoardView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java index 185eab1c3..fa45798ce 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java @@ -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; }