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.
fork-5.53.8
Greyson Parrelli 2021-07-26 08:23:06 -04:00
rodzic 90397165c3
commit d0827eb48e
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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