Jump to content

[1.12.2] GUI Background Rendering Incorrectly


sci4me

Recommended Posts

I'm doing the standard thing where you draw a background texture for a GUI with drawTexturedModalRect something or other; setting my xSize and ySize to the size of the section of the texture that actually contains the background; the texture itself is 512x512 (not sure if this is necessary), but xSize and ySize are 280 and 166 in this case. It's rendering as shown... any ideas why?

2019-12-23_22.47.49.png

 

EDIT: So drawTexturedModalRect only works with 256x256 textures? #SureGladTheseThingsAreDocumentedSoDamnWellLol

Edited by sci4me
Found the answer
Link to comment
Share on other sites

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.