mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 23:28:52 -04:00
Fixes for Spiral Knights
This commit is contained in:
parent
23e8a6338f
commit
aa8bfdd518
@ -19,8 +19,7 @@ public static int getControllerCount() {
|
|||||||
ctrlr.poll();
|
ctrlr.poll();
|
||||||
}
|
}
|
||||||
public static boolean next() {
|
public static boolean next() {
|
||||||
ctrlr.poll();
|
return false;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
public static boolean isCreated() {
|
public static boolean isCreated() {
|
||||||
return true;
|
return true;
|
||||||
|
@ -953,7 +953,7 @@ public class Display {
|
|||||||
} else {
|
} else {
|
||||||
glfwSetWindowIcon(Window.handle, new GLFWImage.Buffer(icons[0]));
|
glfwSetWindowIcon(Window.handle, new GLFWImage.Buffer(icons[0]));
|
||||||
}
|
}
|
||||||
} catch (NullPointerException e) {
|
} catch (Exception e) {
|
||||||
LWJGLUtil.log("Couldn't set icon");
|
LWJGLUtil.log("Couldn't set icon");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -986,9 +986,11 @@ public class Display {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void setDisplayModeAndFullscreen(DisplayMode dm) throws LWJGLException {
|
public static void setDisplayModeAndFullscreen(DisplayMode dm) throws LWJGLException {
|
||||||
|
if(Window.handle != 0) {
|
||||||
Display.mode = dm;
|
Display.mode = dm;
|
||||||
GLFW.glfwSetWindowSize(Window.handle, dm.getWidth(), dm.getHeight());
|
GLFW.glfwSetWindowSize(Window.handle, dm.getWidth(), dm.getHeight());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void setFullscreen(boolean fullscreen) throws LWJGLException {
|
public static void setFullscreen(boolean fullscreen) throws LWJGLException {
|
||||||
System.out.println("LWJGLX: switch fullscreen to " + fullscreen);
|
System.out.println("LWJGLX: switch fullscreen to " + fullscreen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user