From a328364999a9bcf4a03734c5a844a7fd8da1ff3a Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 15 Oct 2019 14:31:41 -0700 Subject: [PATCH] Fix mod info panel rendering incorrectly on some systems with HiDPI displays (pesky macs) (#6170) --- src/main/java/net/minecraftforge/client/gui/ScrollPanel.java | 2 +- src/main/java/net/minecraftforge/fml/client/gui/GuiModList.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraftforge/client/gui/ScrollPanel.java b/src/main/java/net/minecraftforge/client/gui/ScrollPanel.java index 84592610e..a3a799e7d 100644 --- a/src/main/java/net/minecraftforge/client/gui/ScrollPanel.java +++ b/src/main/java/net/minecraftforge/client/gui/ScrollPanel.java @@ -191,7 +191,7 @@ public abstract class ScrollPanel extends FocusableGui implements IRenderable double scale = client.mainWindow.getGuiScaleFactor(); GL11.glEnable(GL11.GL_SCISSOR_TEST); - GL11.glScissor((int)(left * scale), (int)(client.mainWindow.getHeight() - (bottom * scale)), + GL11.glScissor((int)(left * scale), (int)(client.mainWindow.getFramebufferHeight() - (bottom * scale)), (int)(width * scale), (int)(height * scale)); if (this.client.world != null) diff --git a/src/main/java/net/minecraftforge/fml/client/gui/GuiModList.java b/src/main/java/net/minecraftforge/fml/client/gui/GuiModList.java index 032c2f8a8..916e4366c 100644 --- a/src/main/java/net/minecraftforge/fml/client/gui/GuiModList.java +++ b/src/main/java/net/minecraftforge/fml/client/gui/GuiModList.java @@ -275,7 +275,7 @@ public class GuiModList extends Screen this.modList.setLeftPos(6); int modInfoWidth = this.width - this.listWidth - 20; - this.modInfo = new InfoPanel(this.minecraft, modInfoWidth, this.height - 30, 10); + this.modInfo = new InfoPanel(this.minecraft, modInfoWidth, this.height - 40, 10); int doneButtonWidth = Math.min(modInfoWidth, 200); this.addButton(new Button(((modList.getWidth() + 8 + this.width - doneButtonWidth) / 2), this.height - 24, doneButtonWidth, 20,