Skip to content

Commit 46b4594

Browse files
authored
Fix copypasta in src/library_glfw.js. NFC (#19253)
And make use of `elif`.
1 parent f4f93d4 commit 46b4594

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/library_glfw.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,12 +1802,12 @@ var LibraryGLFW = {
18021802

18031803
glfwGetJoystickUserPointer__sig: 'ii',
18041804
glfwGetJoystickUserPointer: function(jid) {
1805-
throw "glfwSetJoystickUserPointer not implemented";
1805+
throw "glfwGetJoystickUserPointer not implemented";
18061806
},
18071807

18081808
glfwJoystickIsGamepad__sig: 'ii',
18091809
glfwJoystickIsGamepad: function(jid) {
1810-
throw "glfwSetJoystickUserPointer not implemented";
1810+
throw "glfwJoystickIsGamepad not implemented";
18111811
},
18121812

18131813
glfwSetJoystickCallback__sig: 'ii',
@@ -1834,9 +1834,7 @@ var LibraryGLFW = {
18341834
GLFW.swapBuffers(winid);
18351835
},
18361836

1837-
#endif // GLFW 3
1838-
1839-
#if USE_GLFW == 2
1837+
#elif USE_GLFW == 2
18401838
glfwOpenWindow: function(width, height, redbits, greenbits, bluebits, alphabits, depthbits, stencilbits, mode) {
18411839
GLFW.hints[0x00021001] = redbits; // GLFW_RED_BITS
18421840
GLFW.hints[0x00021002] = greenbits; // GLFW_GREEN_BITS

0 commit comments

Comments
 (0)