fix overlay drawing
This commit is contained in:
parent
ee494c2d51
commit
c10996bbda
2 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue