summaryrefslogtreecommitdiff
path: root/src/platforms/core_desktop.c
diff options
context:
space:
mode:
authorjussi2024-08-05 23:35:57 +0300
committerjussi2024-08-05 23:35:57 +0300
commitb011b2ca4e161fea2a742cb9b1673cd84cf0eba5 (patch)
treee8a46e45013cc0c2ad27a9f045349ae790cd0a07 /src/platforms/core_desktop.c
parentc6eb85b3674c36cfc426486d866a78dfc5452ae0 (diff)
downloadreilua-enhanced-b011b2ca4e161fea2a742cb9b1673cd84cf0eba5.tar.gz
reilua-enhanced-b011b2ca4e161fea2a742cb9b1673cd84cf0eba5.tar.bz2
reilua-enhanced-b011b2ca4e161fea2a742cb9b1673cd84cf0eba5.zip
GetRayBoxCells fix.
Diffstat (limited to 'src/platforms/core_desktop.c')
-rw-r--r--src/platforms/core_desktop.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/platforms/core_desktop.c b/src/platforms/core_desktop.c
index 6d774ee..8d9f01c 100644
--- a/src/platforms/core_desktop.c
+++ b/src/platforms/core_desktop.c
@@ -99,6 +99,7 @@ int lcoreGetKeyScancode( lua_State* L ) {
Called when the window is resized. Type GLFW_WINDOW_SIZE_EVENT
*/
static void windowSizeEvent( GLFWwindow* window, int width, int height ) {
+// GLFWwindowsizefun windowSizeEvent( GLFWwindow* window, int width, int height ) {
/* Pass through to raylib callback. */
state->raylibWindowSizeCallback( window, width, height );
@@ -617,7 +618,7 @@ static void penTabletProximityEvent( int proxState ) {
static void platformRegisterEvents() {
/* Window events. */
- state->raylibWindowSizeCallback = glfwSetWindowSizeCallback( GetWindowHandle(), windowSizeEvent );
+ state->raylibWindowSizeCallback = glfwSetWindowSizeCallback( GetWindowHandle(), (GLFWwindowsizefun)windowSizeEvent );
#if !defined( PLATFORM_WEB )
state->raylibWindowMaximizeCallback = glfwSetWindowMaximizeCallback( GetWindowHandle(), windowMaximizeEvent );
#endif
@@ -634,9 +635,9 @@ static void platformRegisterEvents() {
state->raylibCursorEnterCallback = glfwSetCursorEnterCallback( GetWindowHandle(), cursorEnterInputEvent );
state->raylibJoystickCallback = glfwSetJoystickCallback( joystickEvent );
/* NOTE! Experimental. Needs glfw PR https://github.com/glfw/glfw/pull/1445 */
- // state->glfwtabletDataCallback = glfwSetPenTabletDataCallback( penTabletDataEvent );
- // state->glfwtabletCursorCallback = glfwSetPenTabletCursorCallback( penTabletCursorEvent );
- // state->glfwtabletProximityCallback = glfwSetPenTabletProximityCallback( penTabletProximityEvent );
+ // state->glfwTabletDataCallback = glfwSetPenTabletDataCallback( penTabletDataEvent );
+ // state->glfwTabletCursorCallback = glfwSetPenTabletCursorCallback( penTabletCursorEvent );
+ // state->glfwTabletProximityCallback = glfwSetPenTabletProximityCallback( penTabletProximityEvent );
}
void luaPlatformRegister() {