Architectury port, EMI compat

This commit is contained in:
Martin Prokoph
2024-09-06 21:44:34 +02:00
parent b6266b8e48
commit f68048d955
41 changed files with 611 additions and 234 deletions

View File

@@ -0,0 +1,28 @@
package eu.midnightdust.blur;
public class BlurInfo {
public static long start;
public static float progress;
public static boolean prevScreenHasBlur;
public static boolean screenHasBlur;
public static boolean prevScreenHasBackground;
public static boolean screenHasBackground;
public static boolean doTest = true;
public static boolean screenChanged = true;
public static long lastScreenChange = System.currentTimeMillis();
public static void reset() {
// Here, we reset all tests, to check if the new screen has blur and/or a background
prevScreenHasBlur = screenHasBlur;
prevScreenHasBackground = screenHasBackground;
screenHasBlur = false;
screenHasBackground = false;
doTest = true;
screenChanged = true;
start = -1;
lastScreenChange = System.currentTimeMillis();
}
}