From b56b01571cbfc79f29b68fc5bca202ad9ddc56ab Mon Sep 17 00:00:00 2001 From: LexManos Date: Sat, 2 Jun 2012 18:05:57 -0700 Subject: [PATCH] Fixed GuiModList Logo rendering to allow for logos of different sizes to be rendered properly. Logos will render themselves full underneath the text, It is the modder's job to make it look good. --- fml/client/cpw/mods/fml/client/GuiModList.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fml/client/cpw/mods/fml/client/GuiModList.java b/fml/client/cpw/mods/fml/client/GuiModList.java index 4680182d6f..a98024790f 100644 --- a/fml/client/cpw/mods/fml/client/GuiModList.java +++ b/fml/client/cpw/mods/fml/client/GuiModList.java @@ -14,6 +14,7 @@ package cpw.mods.fml.client; +import java.awt.Dimension; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; @@ -105,7 +106,8 @@ public class GuiModList extends GuiScreen int texture = this.field_945_b.field_6315_n.func_1070_a(selectedMod.getMetadata().logoFile); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); this.field_945_b.field_6315_n.func_1076_b(texture); - this.func_550_b(offset, 32, 0, 0, 256, 58); + Dimension dim = FMLClientHandler.instance().getTextureDimensions(texture); + this.func_550_b(offset, 32, 0, 0, dim.width, dim.height); shifty += 65; }