From c1483b1aafc8eed04b8261f8a31e4b75b07b9030 Mon Sep 17 00:00:00 2001 From: KosmosPrime Date: Sat, 6 Jun 2015 14:39:22 +0200 Subject: [PATCH 1/3] Update GuiManual.java Fix for issue #1560 in TConstruct. --- src/mantle/client/gui/GuiManual.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mantle/client/gui/GuiManual.java b/src/mantle/client/gui/GuiManual.java index a07492f..85a4be8 100644 --- a/src/mantle/client/gui/GuiManual.java +++ b/src/mantle/client/gui/GuiManual.java @@ -177,6 +177,7 @@ public class GuiManual extends GuiScreen this.drawTexturedModalRect(localWidth, localHeight, 256 - this.bookImageWidth, 0, this.bookImageWidth, this.bookImageHeight); super.drawScreen(par1, par2, par3); //16, 12, 220, 12 + GL11.glEnable(GL11.GL_BLEND); if (pageLeft != null) pageLeft.renderBackgroundLayer(localWidth + 16, localHeight + 12); From 5d2f8fa7f0697c4ff2beb478df027e0b4be0e29d Mon Sep 17 00:00:00 2001 From: KosmosPrime Date: Sat, 27 Jun 2015 13:07:15 +0200 Subject: [PATCH 2/3] Enable alpha blending before rendering a String --- src/mantle/client/SmallFontRenderer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mantle/client/SmallFontRenderer.java b/src/mantle/client/SmallFontRenderer.java index 22aad49..a6d5b15 100644 --- a/src/mantle/client/SmallFontRenderer.java +++ b/src/mantle/client/SmallFontRenderer.java @@ -657,10 +657,13 @@ public class SmallFontRenderer implements IResourceManagerReloadListener this.blue = (float) (par4 >> 8 & 255) / 255.0F; this.green = (float) (par4 & 255) / 255.0F; this.alpha = (float) (par4 >> 24 & 255) / 255.0F; + boolean gl_blend = GL11.glIsEnabled(GL11.GL_BLEND); + if (!gl_blend) GL11.glEnable(GL11.GL_BLEND); GL11.glColor4f(this.red, this.blue, this.green, this.alpha); this.posX = (float) par2; this.posY = (float) par3; this.renderStringAtPos(par1Str, par5); + if (!gl_blend) GL11.glDisable(GL11.GL_BLEND); return (int) this.posX; } } From 05954643dcee054ef79819652c7bba30ce754577 Mon Sep 17 00:00:00 2001 From: KosmosPrime Date: Sat, 27 Jun 2015 13:28:53 +0200 Subject: [PATCH 3/3] Update GuiManual.java --- src/mantle/client/gui/GuiManual.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mantle/client/gui/GuiManual.java b/src/mantle/client/gui/GuiManual.java index 85a4be8..a07492f 100644 --- a/src/mantle/client/gui/GuiManual.java +++ b/src/mantle/client/gui/GuiManual.java @@ -177,7 +177,6 @@ public class GuiManual extends GuiScreen this.drawTexturedModalRect(localWidth, localHeight, 256 - this.bookImageWidth, 0, this.bookImageWidth, this.bookImageHeight); super.drawScreen(par1, par2, par3); //16, 12, 220, 12 - GL11.glEnable(GL11.GL_BLEND); if (pageLeft != null) pageLeft.renderBackgroundLayer(localWidth + 16, localHeight + 12);