mirror of https://github.com/kami-blue/client
line up the outline with the box
This commit is contained in:
parent
910ef6572d
commit
c66c1c582a
|
@ -142,9 +142,13 @@ public class RenderHelper {
|
|||
public static void drawTooltip(int x, int y, int width, int height, float lineWidth, float boxR, float boxG, float boxB, float boxA, float lineR, float lineG, float lineB) {
|
||||
GL11.glColor4f(boxR, boxG, boxB, boxA);
|
||||
drawFilledRectangle(x, y, width, height);
|
||||
|
||||
glPushMatrix();
|
||||
glTranslatef(x, y, 0.0F);
|
||||
GL11.glColor3f(lineR, lineG, lineB);
|
||||
GL11.glLineWidth(lineWidth);
|
||||
RenderHelper.drawRectanglePos(x, y, width, height);
|
||||
RenderHelper.drawRectangle(x, y, width, height);
|
||||
glPopMatrix();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue