Jump to content

Recommended Posts

Posted

 

but how do I completely undo it?

GlStateManager.pushMatrix();
GlStateManager.scale(1.0, 1.0, 1.0);
mc.renderEngine.bindTexture(mainGui);
mc.ingameGUI.drawModalRectWithCustomSizedTexture(x-x/3 - 250, 0, 0, 0, 500, 125, 500, 125);
GlStateManager.popMatrix();

thats what I tried  but GuiScale still affects it, I also tried it with GL11 and it works the same.

Posted
16 minutes ago, diesieben07 said:

Scaling by a scale factor of 1 does precisely nothing.

yeah I know and I also tried different factors which all resized the gui properly, but when I then changed the gui scale, the gui still got bigger and smaller

Posted

Ok, so heres what I did:

GL11.glPushMatrix();
int i = 250;
if(event.getResolution().getScaleFactor() == 2)GL11.glScaled(1.0, 1.0, 1.0);
if(event.getResolution().getScaleFactor() == 1)
{
	GL11.glScaled(2.0, 2.0, 2.0);
	i= i*3;
}
if(event.getResolution().getScaleFactor() == 3)
{
	GL11.glScaled(0.666, 0.666, 0.666);
	i = i/3;
}
if(event.getResolution().getScaleFactor() == 4)
{
	GL11.glScaled(0.5, 0.5, 0.5);
	i = 0;
}
mc.renderEngine.bindTexture(mainGui);
mc.ingameGUI.drawModalRectWithCustomSizedTexture(x/2 - i, 0, 0, 0, 500, 125, 500, 125);
GL11.glPopMatrix();

This works now, thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.