mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-12-14 04:58:46 +01:00
Update #51 - Protocol and FPS improvements, better workspace
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package net.lax1dude.eaglercraft.v1_8;
|
||||
|
||||
import net.lax1dude.eaglercraft.v1_8.internal.ContextLostError;
|
||||
import net.lax1dude.eaglercraft.v1_8.internal.PlatformInput;
|
||||
|
||||
public class Display {
|
||||
@@ -83,6 +84,12 @@ public class Display {
|
||||
return PlatformInput.contextLost();
|
||||
}
|
||||
|
||||
public static void checkContextLost() {
|
||||
if(PlatformInput.contextLost()) {
|
||||
throw new ContextLostError();
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean wasResized() {
|
||||
return PlatformInput.wasResized();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user