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 68bb61087..940a62794 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java @@ -27,6 +27,7 @@ public class BoardView extends View implements DrawCtx, private Rect m_letterRect; Drawable m_rightArrow; Drawable m_downArrow; + Drawable m_origin; private static final int BLACK = 0xFF000000; private static final int WHITE = 0xFFFFFFFF; @@ -151,8 +152,9 @@ public class BoardView extends View implements DrawCtx, m_gi = gi; Resources res = context.getResources(); - m_downArrow = res.getDrawable( R.drawable.downarrow ); m_rightArrow = res.getDrawable( R.drawable.rightarrow ); + m_downArrow = res.getDrawable( R.drawable.downarrow ); + m_origin = res.getDrawable( R.drawable.origin ); } // DrawCtxt interface implementation @@ -205,7 +207,12 @@ public class BoardView extends View implements DrawCtx, m_fillPaint.setColor( backColor ); m_canvas.drawRect( rect, m_fillPaint ); - if ( !empty ) { + if ( empty ) { + if ( (CELL_ISSTAR & flags) != 0 ) { + m_origin.setBounds( rect ); + m_origin.draw( m_canvas ); + } + } else { m_fillPaint.setTextSize( rect.bottom - rect.top ); if ( owner < 0 ) { // showColors option not turned on owner = 0; @@ -218,11 +225,10 @@ public class BoardView extends View implements DrawCtx, return true; } - public void drawBoardArrow ( Rect rect, int bonus, boolean vert, int hintAtts, - int flags ) + public void drawBoardArrow ( Rect rect, int bonus, boolean vert, + int hintAtts, int flags ) { rect.inset( 2, 2 ); - Utils.logf( "drawBoardArrow" ); Drawable arrow = vert? m_downArrow : m_rightArrow; arrow.setBounds( rect ); arrow.draw( m_canvas ); diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CurGameInfo.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CurGameInfo.java index 1dfa41f31..22092eac4 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CurGameInfo.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CurGameInfo.java @@ -32,8 +32,8 @@ public class CurGameInfo { serverRole = DeviceRole.SERVER_STANDALONE; dictName = BUILTIN_DICT; hintsNotAllowed = false; - players[0] = new LocalPlayer( "Eric", true ); - players[1] = new LocalPlayer( "Kati" ); + players[0] = new LocalPlayer( "Eric"); + players[1] = new LocalPlayer( "Kati", true ); players[2] = new LocalPlayer( "Brynn", true ); } }