mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 04:59:05 +00:00
Improved keyboard button rendering
This commit is contained in:
1 parent
9d8fd5bada
commit
226b95af32
1 file changed
+3
-1
@@ -432,7 +432,8 @@ public class OverlayKeyPresetViewer {
|
||||
double screenX = startX / scale, screenY = startY / scale;
|
||||
int oldMinFilter = GL11.glGetTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER);
|
||||
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);
|
||||
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
|
||||
GL11.glPushMatrix();
|
||||
float color = 0.75f;
|
||||
GL11.glColor4f(color, color, color, 1);
|
||||
@@ -440,6 +441,7 @@ public class OverlayKeyPresetViewer {
|
||||
GuiUtil.drawTexturedModalRect(screenX, screenY, textureWidth, textureHeight, 0, 0);
|
||||
GL11.glPopMatrix();
|
||||
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, oldMinFilter);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user