The SDL_PaletteWatch structure is really internal-only.
authorSam Lantinga <slouken@libsdl.org>
Sun, 13 Dec 2009 08:00:25 +0000
changeset 3555 7549b986ccb1
parent 3554 cf815007e443
child 3556 9c2e92de786a
The SDL_PaletteWatch structure is really internal-only.
include/SDL_pixels.h
src/video/SDL_pixels.c
--- a/include/SDL_pixels.h	Sun Dec 13 06:21:22 2009 +0000
+++ b/include/SDL_pixels.h	Sun Dec 13 08:00:25 2009 +0000
@@ -237,13 +237,7 @@
 
 typedef struct SDL_Palette SDL_Palette;
 typedef int (*SDL_PaletteChangedFunc) (void *userdata, SDL_Palette * palette);
-
-typedef struct SDL_PaletteWatch
-{
-    SDL_PaletteChangedFunc callback;
-    void *userdata;
-    struct SDL_PaletteWatch *next;
-} SDL_PaletteWatch;
+typedef struct SDL_PaletteWatch SDL_PaletteWatch;
 
 struct SDL_Palette
 {
--- a/src/video/SDL_pixels.c	Sun Dec 13 06:21:22 2009 +0000
+++ b/src/video/SDL_pixels.c	Sun Dec 13 08:00:25 2009 +0000
@@ -30,6 +30,13 @@
 #include "SDL_pixels_c.h"
 #include "SDL_RLEaccel_c.h"
 
+struct SDL_PaletteWatch
+{
+    SDL_PaletteChangedFunc callback;
+    void *userdata;
+    struct SDL_PaletteWatch *next;
+};
+
 /* Helper functions */
 
 SDL_bool