fixed bar text positioning
This commit is contained in:
parent
c8acd763ef
commit
753115678a
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ public class SplashProgress
|
|||
drawBox((barWidth - 2) * b.getStep() / b.getSteps(), barHeight - 2);
|
||||
// progress text
|
||||
String progress = "" + b.getStep() + "/" + b.getSteps();
|
||||
GL11.glTranslatef(((float)barWidth - 2 - fontRenderer.getStringWidth(progress))/ 2, 2, 0);
|
||||
GL11.glTranslatef(((float)barWidth - 2) / 2 - fontRenderer.getStringWidth(progress), 2, 0);
|
||||
setColor(fontColor);
|
||||
GL11.glScalef(2, 2, 1);
|
||||
GL11.glEnable(GL11.GL_TEXTURE_2D);
|
||||
|
|
Loading…
Reference in a new issue