Refactored some code related to inv/sprite

This commit is contained in:
Pazaz 2022-05-11 04:24:19 -04:00
parent 77bfb744bc
commit b57d5a0031
51 changed files with 686 additions and 625 deletions

View file

@ -12,6 +12,18 @@ public final class Rasteriser {
@OriginalMember(owner = "client!hf", name = "e", descriptor = "Lclient!m;")
public static TextureProvider textureProvider;
@OriginalMember(owner = "client!tg", name = "c", descriptor = "I")
public static int screenLowerX;
@OriginalMember(owner = "client!ub", name = "m", descriptor = "I")
public static int screenUpperX;
@OriginalMember(owner = "client!a", name = "g", descriptor = "I")
public static int screenLowerY;
@OriginalMember(owner = "client!li", name = "x", descriptor = "I")
public static int screenUpperY;
@OriginalMember(owner = "client!hf", name = "k", descriptor = "I")
private static int height;
@ -1313,10 +1325,10 @@ public final class Rasteriser {
public static void prepareOffsets() {
centerX = width / 2;
centerY = height / 2;
Static240.screenLowerX = -centerX;
Static247.screenUpperX = width - centerX;
Static1.screenLowerY = -centerY;
Static148.screenUpperY = height - centerY;
screenLowerX = -centerX;
screenUpperX = width - centerX;
screenLowerY = -centerY;
screenUpperY = height - centerY;
}
@OriginalMember(owner = "client!hf", name = "a", descriptor = "([I[IIIIIIIIIIIIII)V")
@ -2520,10 +2532,10 @@ public final class Rasteriser {
@Pc(13) int left = offset - top * SoftwareRaster.width;
centerX = right - left;
centerY = bottom - top;
Static240.screenLowerX = -centerX;
Static247.screenUpperX = width - centerX;
Static1.screenLowerY = -centerY;
Static148.screenUpperY = height - centerY;
screenLowerX = -centerX;
screenUpperX = width - centerX;
screenLowerY = -centerY;
screenUpperY = height - centerY;
}
@OriginalMember(owner = "client!hf", name = "a", descriptor = "([IIIIIIII)V")