Fix mod info panel rendering incorrectly on some systems with HiDPI displays (pesky macs) (#6170)

This commit is contained in:
Justin 2019-10-15 14:31:41 -07:00 committed by LexManos
parent 94cbf72e39
commit a328364999
2 changed files with 2 additions and 2 deletions

View file

@ -191,7 +191,7 @@ public abstract class ScrollPanel extends FocusableGui implements IRenderable
double scale = client.mainWindow.getGuiScaleFactor(); double scale = client.mainWindow.getGuiScaleFactor();
GL11.glEnable(GL11.GL_SCISSOR_TEST); 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)); (int)(width * scale), (int)(height * scale));
if (this.client.world != null) if (this.client.world != null)

View file

@ -275,7 +275,7 @@ public class GuiModList extends Screen
this.modList.setLeftPos(6); this.modList.setLeftPos(6);
int modInfoWidth = this.width - this.listWidth - 20; 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); int doneButtonWidth = Math.min(modInfoWidth, 200);
this.addButton(new Button(((modList.getWidth() + 8 + this.width - doneButtonWidth) / 2), this.height - 24, doneButtonWidth, 20, this.addButton(new Button(((modList.getWidth() + 8 + this.width - doneButtonWidth) / 2), this.height - 24, doneButtonWidth, 20,