Skip to content

Commit

Permalink
Merge pull request #2362 from jMonkeyEngine/sgold/rework/2314
Browse files Browse the repository at this point in the history
LwjglWindow:  solve window centering incorrect in JME 3.8.0-alpha3
  • Loading branch information
yaRnMcDonuts authored Feb 11, 2025
2 parents 8e4d9e1 + 4371bbe commit b5f225d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ public void invoke(int error, long description) {
if (!settings.isFullscreen()) {
if (settings.getCenterWindow()) {
// Center the window
requestX = videoMode.width() - requestWidth;
requestY = videoMode.height() - requestWidth;
requestX = (videoMode.width() - requestWidth) / 2;
requestY = (videoMode.height() - requestHeight) / 2;
} else {
requestX = settings.getWindowXPosition();
requestY = settings.getWindowYPosition();
Expand Down

0 comments on commit b5f225d

Please sign in to comment.