Skip to content

Commit

Permalink
Overscan by 1 pixel to stop Windows from putting it into exclusive fu…
Browse files Browse the repository at this point in the history
…llscreen (closes #1996)
  • Loading branch information
LordMonoxide committed Feb 1, 2025
1 parent 4069d48 commit 94f0f31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/legend/core/opengl/Window.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ public void makeFullscreen() {
this.monitor = this.getMonitorFromConfig();
this.moveToMonitor();
glfwSetWindowAttrib(this.window, GLFW_DECORATED, GLFW_FALSE);
glfwSetWindowSize(this.window, this.vidMode.width(), this.vidMode.height());

// Overscan by 1 pixel to stop Windows from putting it into exclusive fullscreen
glfwSetWindowSize(this.window, this.vidMode.width(), this.vidMode.height() + 1);
}

public void makeWindowed() {
Expand Down

0 comments on commit 94f0f31

Please sign in to comment.