line up the outline with the box

This commit is contained in:
Bella 2020-04-13 12:54:18 -04:00
parent 910ef6572d
commit c66c1c582a
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 5 additions and 1 deletions

View File

@ -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();
}
}