Skip to content

Commit

Permalink
Implement Display.setLocation()
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Sep 7, 2024
1 parent b132d86 commit 2dc6daf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/lwjgl/opengl/Display.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,12 @@ public static boolean isVisible() {
}

public static void setLocation(int new_x, int new_y) {
System.out.println("TODO: Implement Display.setLocation(int, int)");
if (!displayCreated) {
displayX = new_x;
displayY = new_y;
} else {
GLFW.glfwSetWindowPos(Window.handle, new_x, new_y);
}
}

public static void setVSyncEnabled(boolean sync) {
Expand Down

0 comments on commit 2dc6daf

Please sign in to comment.