projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20030610-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
x11.h
diff --git
a/src/libgame/x11.h
b/src/libgame/x11.h
index a4a0577fd1402dab9d3823c7f18e90d0a459556b..4ef96acbd976f5553dcbb751d58375626bb51c7e 100644
(file)
--- a/
src/libgame/x11.h
+++ b/
src/libgame/x11.h
@@
-45,6
+45,9
@@
#define FULLSCREEN_STATUS FULLSCREEN_NOT_AVAILABLE
#define FULLSCREEN_STATUS FULLSCREEN_NOT_AVAILABLE
+#define CURSOR_MAX_WIDTH 32
+#define CURSOR_MAX_HEIGHT 32
+
/* X11 type definitions */
/* X11 type definitions */
@@
-80,6
+83,15
@@
struct X11DrawableInfo
GC clip_gc; /* can be 'stored_clip_gc' or one-tile-only clip GC */
};
GC clip_gc; /* can be 'stored_clip_gc' or one-tile-only clip GC */
};
+struct MouseCursorInfo
+{
+ int width, height;
+ int hot_x, hot_y;
+
+ char data[CURSOR_MAX_WIDTH * CURSOR_MAX_HEIGHT / 8];
+ char mask[CURSOR_MAX_WIDTH * CURSOR_MAX_HEIGHT / 8];
+};
+
struct XY
{
short x, y;
struct XY
{
short x, y;
@@
-321,7
+333,7
@@
inline Pixel X11GetPixel(Bitmap *, int, int);
inline Pixel X11GetPixelFromRGB(unsigned int, unsigned int, unsigned int);
#if defined(TARGET_X11_NATIVE)
inline Pixel X11GetPixelFromRGB(unsigned int, unsigned int, unsigned int);
#if defined(TARGET_X11_NATIVE)
-void X11SetMouseCursor(
const char *
*);
+void X11SetMouseCursor(
struct MouseCursorInfo
*);
#endif
#endif /* X11_H */
#endif
#endif /* X11_H */