mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-07 20:46:17 +01:00
draw tile value in cell
This is an experiment. I suspect the eventual fix will be to have two modes, one of which draws the values and the other doesn't, replacing the TILES/VALUES pref.
This commit is contained in:
parent
538ab5ab3b
commit
da352d6948
1 changed files with 9 additions and 1 deletions
|
@ -432,7 +432,15 @@ public class BoardCanvas extends Canvas implements DrawCtx {
|
|||
}
|
||||
} else {
|
||||
m_fillPaint.setColor( adjustColor(foreColor) );
|
||||
drawCentered( text, rect, m_fontDims );
|
||||
Rect smaller = new Rect(rect);
|
||||
smaller.bottom -= smaller.height() / 4;
|
||||
smaller.right -= smaller.width() / 4;
|
||||
drawCentered( text, smaller, m_fontDims );
|
||||
|
||||
smaller = new Rect(rect);
|
||||
smaller.left += (3 * smaller.width()) / 4;
|
||||
smaller.top += (3 * smaller.height()) / 4;
|
||||
drawCentered( String.format("%d", value), smaller, m_fontDims );
|
||||
}
|
||||
|
||||
if ( (CELL_ISBLANK & flags) != 0 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue