Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Better selection and cursor size.
Before commit:  After:  For an older skin using the "includePaddingInMetrics" method from the blog, I had to use this to get previous behavior: ``` protected void drawSelection (Drawable selection, Batch batch, BitmapFont font, float x, float y) { float adjust = font.getDescent() / 2; textHeight += adjust; super.drawSelection(selection, batch, font, x, y + adjust); textHeight -= adjust; } protected void drawCursor (Drawable cursorPatch, Batch batch, BitmapFont font, float x, float y) { float adjust = font.getDescent() / 2; textHeight += adjust; super.drawCursor(cursorPatch, batch, font, x, y + adjust); textHeight -= adjust; } ```
- Loading branch information