# HG changeset patch # User Sam Lantinga # Date 1260691225 0 # Node ID 7549b986ccb19920faafaa28910547774322dbcb # Parent cf815007e443df7cfb7f4575f68cf27602bf5a92 The SDL_PaletteWatch structure is really internal-only. diff -r cf815007e443 -r 7549b986ccb1 include/SDL_pixels.h --- 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 { diff -r cf815007e443 -r 7549b986ccb1 src/video/SDL_pixels.c --- 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