fix right edge of scaled text getting clipped by paying attention to

where getTextBounds() says its left edge is.
This commit is contained in:
Eric House 2012-07-01 17:05:39 -07:00
parent 43e8205fd8
commit c41c877ae7

View file

@ -945,7 +945,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
Canvas canvas = new Canvas( bitmap );
int bottom = local.bottom - descent;
canvas.drawText( text, 0, bottom, m_fillPaint );
canvas.drawText( text, -local.left, bottom, m_fillPaint );
m_canvas.drawBitmap( bitmap, null, rect, m_drawPaint );
}