Commit 2a830de
committed
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;
}
```1 parent b65dd66 commit 2a830de
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
| 348 | + | |
350 | 349 | | |
351 | 350 | | |
352 | 351 | | |
| |||
0 commit comments