quilt-mappings icon indicating copy to clipboard operation
quilt-mappings copied to clipboard

`drawTexture` has incorrect parameter names

Open floppydiskette opened this issue 2 years ago • 2 comments

the last two parameters of the exposed drawTexture function, that being textureHeight and textureWidth, seem to actually be opposites of each other (textureHeight controls width, textureWidth controls height).

the following code generates a correctly scaled texture (note the "incorrect" parameters provided) however, the following code generates an incorrectly scaled texture (note the "correct" parameters provided)

floppydiskette avatar Aug 20 '22 08:08 floppydiskette

Where is this method?

ghost avatar Aug 20 '22 14:08 ghost

net.minecraft.client.gui.DrawableHelper

floppydiskette avatar Aug 20 '22 21:08 floppydiskette