mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-01 14:19:12 -06:00
Use HashMap.getOrDefault()
This commit is contained in:
parent
1f1d542ed7
commit
b0af8e43f4
1 changed files with 1 additions and 5 deletions
|
|
@ -892,11 +892,7 @@ public class GLFW
|
|||
}
|
||||
|
||||
public static int glfwGetWindowAttrib(@NativeType("GLFWwindow *") long window, int attrib) {
|
||||
Object obj = internalGetWindow(window).windowAttribs.get(attrib);
|
||||
if (obj == null) {
|
||||
return 0;
|
||||
}
|
||||
return (int) obj;
|
||||
return internalGetWindow(window).windowAttribs.getOrDefault(attrib, 0);
|
||||
}
|
||||
|
||||
public static void glfwSetWindowAttrib(@NativeType("GLFWwindow *") long window, int attrib, int value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue