Fix emotes not being vertically centered.

r3cp3ct-Japanese-sticker-triggers
sigonasr2 6 years ago
parent 01f4d1c261
commit a2f3664da3
  1. BIN
      sigIRCv2.jar
  2. 2
      src/sig/ScrollingText.java

Binary file not shown.

@ -284,7 +284,7 @@ public class ScrollingText {
String cutstring = basemsg.substring(0, pos);
double width = TextUtils.calculateStringBoundsFont(cutstring, sigIRC.panel.programFont).getWidth();
//System.out.println("Width of '"+cutstring+"' is "+width);
sigIRC.createEmoticon(e, this, (int)(width), 0);
sigIRC.createEmoticon(e, this, (int)(width), 8);
textMaxHeight = Math.max(textMaxHeight, e.getImage().getHeight());
//textMaxWidth = (int)(width + e.getImage().getWidth()+1);
}

Loading…
Cancel
Save