Skip to content

Commit

Permalink
Fix window.shouldClose
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Nov 7, 2023
1 parent 3439002 commit f3d0b53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ class Window extends EventEmitter {
}

get shouldClose() { return glfw.windowShouldClose(this._window); }
set shouldClose(v) { glfw.setWindowShouldClose(v); }
set shouldClose(v) { glfw.setWindowShouldClose(this._window, v ? glfw.TRUE : glfw.FALSE); }

get platformDevice() { return glfw.platformDevice(); }
get platformWindow() { return glfw.platformWindow(this._window); }
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "glfw-raub",
"version": "5.4.0",
"version": "5.4.1",
"description": "GLFW for Node.js",
"license": "MIT",
"main": "index.js",
Expand Down

0 comments on commit f3d0b53

Please sign in to comment.