include/SDL_video.h
changeset 5149 be02be2ea897
parent 5145 2f44e6969a59
child 5154 fb424691cfc7
equal deleted inserted replaced
5148:5429daf5e3f9 5149:be02be2ea897
   354  */
   354  */
   355 extern DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window * window,
   355 extern DECLSPEC int SDLCALL SDL_GetWindowDisplayMode(SDL_Window * window,
   356                                                      SDL_DisplayMode * mode);
   356                                                      SDL_DisplayMode * mode);
   357 
   357 
   358 /**
   358 /**
   359  *  \brief Set the palette entries for indexed display modes.
       
   360  *  
       
   361  *  \return 0 on success, or -1 if the display mode isn't palettized or the 
       
   362  *          colors couldn't be set.
       
   363  */
       
   364 extern DECLSPEC int SDLCALL SDL_SetDisplayPalette(const SDL_Color * colors,
       
   365                                                   int firstcolor,
       
   366                                                   int ncolors);
       
   367 
       
   368 /**
       
   369  *  \brief Gets the palette entries for indexed display modes.
       
   370  *  
       
   371  *  \return 0 on success, or -1 if the display mode isn't palettized
       
   372  */
       
   373 extern DECLSPEC int SDLCALL SDL_GetDisplayPalette(SDL_Color * colors,
       
   374                                                   int firstcolor,
       
   375                                                   int ncolors);
       
   376 
       
   377 /**
       
   378  *  \brief Set the gamma correction for each of the color channels on the 
   359  *  \brief Set the gamma correction for each of the color channels on the 
   379  *         currently selected display.
   360  *         currently selected display.
   380  *  
   361  *  
   381  *  \return 0 on success, or -1 if setting the gamma isn't supported.
   362  *  \return 0 on success, or -1 if setting the gamma isn't supported.
   382  *  
   363  *