1
0
Fork 0

fix overlay drawing

This commit is contained in:
Sen 2025-09-04 12:22:43 +02:00
parent ee494c2d51
commit c10996bbda
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
2 changed files with 2 additions and 3 deletions

View file

@ -3175,7 +3175,7 @@ public class Client implements IThreadListener {
if(size > 0) {
long fade = 1000000L * (long)this.hudFadeout;
int bg = (this.hudOpacity << 24) | 0x000000;
y = up ? y - Font.HEIGHT : y;
y = up ? y - Font.HEIGHT - 2 : y;
for(Iterator<Message> iter = log.iterator(); iter.hasNext();) {
Message msg = iter.next();
if((this.tmr_current - msg.time()) <= fade || (log == this.chat && this.chatPermanent)) {
@ -3185,7 +3185,7 @@ public class Client implements IThreadListener {
Drawing.drawTextboxRight(msg.message(), x, y, bg);
else
Drawing.drawTextboxCentered(msg.message(), x, y, bg);
y += up ? -(Font.HEIGHT) : Font.HEIGHT;
y += up ? -(Font.HEIGHT + 2) : Font.HEIGHT + 2;
}
else {
iter.remove();

View file

@ -20,7 +20,6 @@ import client.gui.element.FontLabel;
import client.gui.element.DisplayLabel;
import client.gui.element.InventoryButton;
import client.gui.element.Label;
import client.gui.element.MultiLabel;
import client.gui.ingame.GuiRename;
import client.renderer.Drawing;
import client.renderer.GlState;