mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-25 22:44:36 +00:00
Move shared button and scrollbar textures to UIWidgetTexture (#1158)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
09e3846bea
commit
bf957e4642
12 files changed
+184
-24
No files matched your search
@@ -220,8 +220,9 @@ public class DrawableResource extends Image {
|
||||
|
||||
final float scaleU = 1.0F / this.textureWidth;
|
||||
final float scaleV = 1.0F / this.textureHeight;
|
||||
final int x = xOffset + this.paddingLeft;
|
||||
final int y = yOffset + this.paddingTop;
|
||||
// 1/64 shift keeps pixel centers off texel edges, where NEAREST picks a texel at random when downscaled
|
||||
final double x = xOffset + this.paddingLeft + 1 / 64d;
|
||||
final double y = yOffset + this.paddingTop + 1 / 64d;
|
||||
final float u0 = (this.x + u) * scaleU;
|
||||
final float u1 = (this.x + u + width) * scaleU;
|
||||
final float v0 = (this.y + v) * scaleV;
|
||||
|
||||
Reference in new issue
Block a user