draw blank-marking circle white-on-black for pending tiles --

otherwise it's invisible.
This commit is contained in:
Andy2 2010-06-28 18:21:53 -07:00
parent 7b52f36925
commit 375111d0f1

View file

@ -538,7 +538,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
}
if ( (CELL_ISBLANK & flags) != 0 ) {
markBlank( new Rect(rect) );
markBlank( rect, pending );
}
m_canvas.drawRect( rect, m_strokePaint );
@ -888,9 +888,17 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
}
} // figureFontDims
private void markBlank( Rect rect )
private void markBlank( final Rect rect, boolean whiteOnBlack )
{
RectF oval = new RectF( rect.left, rect.top, rect.right, rect.bottom );
int curColor = 0;
if ( whiteOnBlack ) {
curColor = m_strokePaint.getColor();
m_strokePaint.setColor( WHITE );
}
m_canvas.drawArc( oval, 0, 360, false, m_strokePaint );
if ( whiteOnBlack ) {
m_strokePaint.setColor( curColor );
}
}
}