mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
don't draw tile values < 0
This commit is contained in:
parent
1a4f0e04bf
commit
47d29d8d4d
1 changed files with 10 additions and 8 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue