Skip to content

Commit

Permalink
Fix emoji rendering artifact.
Browse files Browse the repository at this point in the history
There's sometimes this one pixel line that can appear next to them.
Easiest solution for now is to trim it off.
  • Loading branch information
greyson-signal committed Jul 26, 2021
1 parent 9039716 commit d0827eb
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -122,10 +122,10 @@ public int getIntrinsicHeight() {
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
Expand Down

0 comments on commit d0827eb

Please sign in to comment.