Fix emoji rendering artifact.

There's sometimes this one pixel line that can appear next to them.
Easiest solution for now is to trim it off.
This commit is contained in:
Greyson Parrelli 2021-07-26 08:23:06 -04:00
parent 90397165c3
commit d0827eb48e

View file

@ -122,10 +122,10 @@ class EmojiProvider {
final int xStart = (index % emojiPerRow) * glyphWidth;
final int yStart = (index / emojiPerRow) * glyphHeight;
this.emojiBounds = new Rect(xStart,
yStart,
xStart + glyphWidth,
yStart + glyphHeight);
this.emojiBounds = new Rect(xStart + 1,
yStart + 1,
xStart + glyphWidth - 1,
yStart + glyphHeight - 1);
}
@Override