Mercurial > sdl-ios-xcode
changeset 3555:7549b986ccb1
The SDL_PaletteWatch structure is really internal-only.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 13 Dec 2009 08:00:25 +0000 |
parents | cf815007e443 |
children | 9c2e92de786a |
files | include/SDL_pixels.h src/video/SDL_pixels.c |
diffstat | 2 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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