From b011b2ca4e161fea2a742cb9b1673cd84cf0eba5 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 5 Aug 2024 23:35:57 +0300 Subject: GetRayBoxCells fix. --- src/platforms/core_desktop.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/platforms') 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() { -- cgit v1.2.3