The SDL_PaletteWatch structure is really internal-only.
authorSam Lantinga <slouken@libsdl.org>
Sun, 13 Dec 2009 08:00:25 +0000
changeset 35557549b986ccb1
parent 3554 cf815007e443
child 3556 9c2e92de786a
The SDL_PaletteWatch structure is really internal-only.
include/SDL_pixels.h
src/video/SDL_pixels.c
     1.1 --- a/include/SDL_pixels.h	Sun Dec 13 06:21:22 2009 +0000
     1.2 +++ b/include/SDL_pixels.h	Sun Dec 13 08:00:25 2009 +0000
     1.3 @@ -237,13 +237,7 @@
     1.4  
     1.5  typedef struct SDL_Palette SDL_Palette;
     1.6  typedef int (*SDL_PaletteChangedFunc) (void *userdata, SDL_Palette * palette);
     1.7 -
     1.8 -typedef struct SDL_PaletteWatch
     1.9 -{
    1.10 -    SDL_PaletteChangedFunc callback;
    1.11 -    void *userdata;
    1.12 -    struct SDL_PaletteWatch *next;
    1.13 -} SDL_PaletteWatch;
    1.14 +typedef struct SDL_PaletteWatch SDL_PaletteWatch;
    1.15  
    1.16  struct SDL_Palette
    1.17  {
     2.1 --- a/src/video/SDL_pixels.c	Sun Dec 13 06:21:22 2009 +0000
     2.2 +++ b/src/video/SDL_pixels.c	Sun Dec 13 08:00:25 2009 +0000
     2.3 @@ -30,6 +30,13 @@
     2.4  #include "SDL_pixels_c.h"
     2.5  #include "SDL_RLEaccel_c.h"
     2.6  
     2.7 +struct SDL_PaletteWatch
     2.8 +{
     2.9 +    SDL_PaletteChangedFunc callback;
    2.10 +    void *userdata;
    2.11 +    struct SDL_PaletteWatch *next;
    2.12 +};
    2.13 +
    2.14  /* Helper functions */
    2.15  
    2.16  SDL_bool