Tiny2D t2d = getT2D(tile);
TinyFont font = MyArial.getFont();
int commentFontSize = daHeight(tile) / commentLines;
//int commentFontDescent = commentFontSize * font.descent / font.unitsPerEm;
int commentFontAscent = commentFontSize * font.ascent / font.unitsPerEm;
TinyColor fgColor = new TinyColor(commentFgColor);
for (int i = 0; i < tile.pixels32.length; i++)
tile.pixels32[i] = commentBgColor;
int Y = 0; // y position to draw
if (moveStatus != null) {
char[] text = moveStatus.toCharArray();
//#ifdef debug
System.out.println("\t" + moveStatus);
//#endif
int X = daWidth(tile) / 2;
t2d.strokeColor = TinyColor.NONE;
t2d.fillColor = fgColor;
t2d.drawChars(font, commentFontSize, text, 0, text.length, X, Y + commentFontAscent, Tiny2D.TEXT_ANCHOR_MIDDLE);
Y += commentFontSize;
commentLines--;
}
if (commentLines > 0) {
int X = ONE * 2;
// draw move indicator
if (drawSolvedFailedIndicator || drawColorToPlayIndicator) {
t2d.strokeWidth = ONE;
t2d.strokeColor = fgColor;
if (drawSolvedFailedIndicator)
t2d.fillColor = new TinyColor(goodMove ? goodMoveColor : badMoveColor);
else if (drawColorToPlayIndicator)
t2d.fillColor = new TinyColor(black ? blackStoneColor : whiteStoneColor);
t2d.drawOval(X, Y + ONE, commentFontSize - ONE * 2, commentFontSize - ONE * 2);
X = commentFontSize + commentFontSize / 4;
}
if (comment != null) {