From 7a4623e034cd49a43b4757cd61b23c1a06de69e2 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 27 Mar 2014 17:29:22 +0100 Subject: [PATCH] Added cursor stubs to Wayland backend. --- src/wayland_platform.h | 6 ++++++ src/wayland_window.c | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/src/wayland_platform.h b/src/wayland_platform.h index 810fc0c9..1ea68a31 100644 --- a/src/wayland_platform.h +++ b/src/wayland_platform.h @@ -47,6 +47,7 @@ #define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWayland wl #define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWayland wl #define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWayland wl +#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWayland wl typedef struct _GLFWvidmodeWayland _GLFWvidmodeWayland; @@ -89,6 +90,11 @@ typedef struct _GLFWmonitorWayland int y; } _GLFWmonitorWayland; +typedef struct _GLFWcursorWayland +{ + int dummy; +} _GLFWcursorWayland; + //======================================================================== // Prototypes for platform specific internal functions diff --git a/src/wayland_window.c b/src/wayland_window.c index b5f7861c..bfeeab5c 100644 --- a/src/wayland_window.c +++ b/src/wayland_window.c @@ -273,3 +273,21 @@ void _glfwPlatformApplyCursorMode(_GLFWwindow* window) } } +int _glfwPlatformCreateCursor(_GLFWcursor* cursor, + const GLFWimage* image, + int xhot, int yhot) +{ + fprintf(stderr, "_glfwPlatformCreateCursor not implemented yet\n"); + return GL_FALSE; +} + +void _glfwPlatformDestroyCursor(_GLFWcursor* cursor) +{ + fprintf(stderr, "_glfwPlatformDestroyCursor not implemented yet\n"); +} + +void _glfwPlatformSetCursor(_GLFWwindow* window, _GLFWcursor* cursor) +{ + fprintf(stderr, "_glfwPlatformSetCursor not implemented yet\n"); +} +