mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 07:05:40 -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();
|
||||
}
|
||||
public static boolean next() {
|
||||
ctrlr.poll();
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
public static boolean isCreated() {
|
||||
return true;
|
||||
|
@ -953,7 +953,7 @@ public class Display {
|
||||
} else {
|
||||
glfwSetWindowIcon(Window.handle, new GLFWImage.Buffer(icons[0]));
|
||||
}
|
||||
} catch (NullPointerException e) {
|
||||
} catch (Exception e) {
|
||||
LWJGLUtil.log("Couldn't set icon");
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -986,8 +986,10 @@ public class Display {
|
||||
}
|
||||
|
||||
public static void setDisplayModeAndFullscreen(DisplayMode dm) throws LWJGLException {
|
||||
Display.mode = dm;
|
||||
GLFW.glfwSetWindowSize(Window.handle, dm.getWidth(), dm.getHeight());
|
||||
if(Window.handle != 0) {
|
||||
Display.mode = dm;
|
||||
GLFW.glfwSetWindowSize(Window.handle, dm.getWidth(), dm.getHeight());
|
||||
}
|
||||
}
|
||||
|
||||
public static void setFullscreen(boolean fullscreen) throws LWJGLException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user