don't draw tile values < 0

This commit is contained in:
ehouse 2010-01-12 13:30:20 +00:00
parent 1a4f0e04bf
commit 47d29d8d4d

View file

@ -319,7 +319,7 @@ public class BoardView extends View implements DrawCtx,
public void drawTileBack( Rect rect, int flags )
{
drawTile( rect, "?", null, 0, flags );
drawTile( rect, "?", null, -1, flags );
}
public void drawTrayDivider( Rect rect, int flags )
@ -360,6 +360,7 @@ public class BoardView extends View implements DrawCtx,
drawCentered( text, m_letterRect );
}
if ( val >= 0 ) {
if ( null == m_valRect ) {
m_valRect = new Rect( 0, 0, rect.width() / 4, rect.height() / 4 );
}
@ -369,6 +370,7 @@ public class BoardView extends View implements DrawCtx,
m_fillPaint.setTextSize( m_valRect.height() );
drawCentered( text, m_valRect );
}
}
private void clearToBack( Rect rect )
{