diff src/video/gem/SDL_gemvideo.h @ 1857:417f2af2bd52

Fix mouse cursor change
author Patrice Mandin <patmandin@gmail.com>
date Wed, 14 Jun 2006 18:57:58 +0000
parents 2405517b5eab
children c121d94672cb 0fbbaa1f9ed6
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.h	Tue May 23 15:07:56 2006 +0000
+++ b/src/video/gem/SDL_gemvideo.h	Wed Jun 14 18:57:58 2006 +0000
@@ -27,6 +27,11 @@
 #include "SDL_mutex.h"
 #include "../SDL_sysvideo.h"
 
+/* The implementation dependent data for the window manager cursor */
+struct WMcursor {
+	MFORM *mform_p;
+};
+
 /* Hidden "this" pointer for the video functions */
 #define _THIS	SDL_VideoDevice *this
 
@@ -82,6 +87,7 @@
 	short message[8];			/* To self-send an AES message */
 	void *menubar;				/* Menu bar save buffer when going fullscreen */
 	SDL_bool use_dev_mouse;		/* Use /dev/mouse ? */
+	WMcursor *cursor;			/* To restore cursor when leaving/entering window */
 
 	SDL_bool fullscreen;		/* Fullscreen or windowed mode ? */
 	SDL_Rect *SDL_modelist[SDL_NUMMODES+1];	/* Mode list */
@@ -131,6 +137,7 @@
 #define GEM_fullscreen		(this->hidden->fullscreen)
 #define GEM_menubar			(this->hidden->menubar)
 #define GEM_usedevmouse		(this->hidden->use_dev_mouse)
+#define GEM_cursor			(this->hidden->cursor)
 
 #define GEM_buffer1			(this->hidden->buffer1)
 #define GEM_buffer2			(this->hidden->buffer2)