Removed a little redundancy in the naming
authorSam Lantinga <slouken@libsdl.org>
Tue, 01 Dec 2009 06:15:10 +0000
changeset 3501467e67d301f3
parent 3500 4b594623401b
child 3502 98a819296cdc
Removed a little redundancy in the naming
src/video/SDL_sysvideo.h
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_sysvideo.h	Tue Dec 01 05:57:15 2009 +0000
     1.2 +++ b/src/video/SDL_sysvideo.h	Tue Dec 01 06:15:10 2009 +0000
     1.3 @@ -413,12 +413,11 @@
     1.4  extern int SDL_GetCurrentDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode);
     1.5  extern SDL_DisplayMode * SDL_GetClosestDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode, SDL_DisplayMode * closest);
     1.6  extern int SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode);
     1.7 -extern int SDL_SetDisplayPaletteForDisplay(SDL_VideoDisplay * display, const SDL_Color * colors, int firstcolor, int ncolors);
     1.8 -extern int SDL_GetDisplayPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int firstcolor, int ncolors);
     1.9 -extern void SDL_AddRenderDriver(SDL_VideoDisplay *display, const SDL_RenderDriver * driver);
    1.10 -
    1.11 +extern int SDL_SetPaletteForDisplay(SDL_VideoDisplay * display, const SDL_Color * colors, int firstcolor, int ncolors);
    1.12 +extern int SDL_GetPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int firstcolor, int ncolors);
    1.13  extern int SDL_SetGammaRampForDisplay(SDL_VideoDisplay * display, const Uint16 * red, const Uint16 * green, const Uint16 * blue);
    1.14  extern int SDL_GetGammaRampForDisplay(SDL_VideoDisplay * display, Uint16 * red, Uint16 * green, Uint16 * blue);
    1.15 +extern void SDL_AddRenderDriver(SDL_VideoDisplay *display, const SDL_RenderDriver * driver);
    1.16  
    1.17  extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
    1.18  extern SDL_Window *SDL_GetWindowFromID(SDL_WindowID windowID);
     2.1 --- a/src/video/SDL_video.c	Tue Dec 01 05:57:15 2009 +0000
     2.2 +++ b/src/video/SDL_video.c	Tue Dec 01 06:15:10 2009 +0000
     2.3 @@ -720,7 +720,7 @@
     2.4  }
     2.5  
     2.6  int
     2.7 -SDL_SetDisplayPaletteForDisplay(SDL_VideoDisplay * display, const SDL_Color * colors, int firstcolor, int ncolors)
     2.8 +SDL_SetPaletteForDisplay(SDL_VideoDisplay * display, const SDL_Color * colors, int firstcolor, int ncolors)
     2.9  {
    2.10      SDL_Palette *palette;
    2.11      int status = 0;
    2.12 @@ -747,11 +747,11 @@
    2.13          SDL_UninitializedVideo();
    2.14          return -1;
    2.15      }
    2.16 -    return SDL_SetDisplayPaletteForDisplay(&SDL_CurrentDisplay, colors, firstcolor, ncolors);
    2.17 +    return SDL_SetPaletteForDisplay(&SDL_CurrentDisplay, colors, firstcolor, ncolors);
    2.18  }
    2.19  
    2.20  int
    2.21 -SDL_GetDisplayPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int firstcolor, int ncolors)
    2.22 +SDL_GetPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int firstcolor, int ncolors)
    2.23  {
    2.24      SDL_Palette *palette;
    2.25  
    2.26 @@ -778,7 +778,7 @@
    2.27          SDL_UninitializedVideo();
    2.28          return -1;
    2.29      }
    2.30 -    return SDL_GetDisplayPaletteForDisplay(&SDL_CurrentDisplay, colors, firstcolor, ncolors);
    2.31 +    return SDL_GetPaletteForDisplay(&SDL_CurrentDisplay, colors, firstcolor, ncolors);
    2.32  }
    2.33  
    2.34  SDL_WindowID