GL11.glColor4f(c.getRedF(), c.getGreenF(), c.getBlueF(), c.getAlphaF());
}
public void render(GenericListWidgetItem lwi, int x, int y, int width, int height) {
if (lwi.getIconUrl() != null && !lwi.getIconUrl().isEmpty()) {
Texture t = CustomTextureManager.getTextureFromUrl(lwi.getIconUrl());
if (t != null) {
int maxHeight = height - 4;
float f = (float) t.getImageWidth() / (float) t.getImageHeight();
int w = (int) (maxHeight * f);
GL11.glTranslated(6, (y+2), 0);
drawTexture(t, maxHeight, w);
GL11.glTranslated(-6, (-(y+2)), 0);