src/video/SDL_sysvideo.h
changeset 3500 4b594623401b
parent 3435 9f62f47d989b
child 3501 467e67d301f3
     1.1 --- a/src/video/SDL_sysvideo.h	Mon Nov 30 21:04:25 2009 +0000
     1.2 +++ b/src/video/SDL_sysvideo.h	Tue Dec 01 05:57:15 2009 +0000
     1.3 @@ -139,6 +139,8 @@
     1.4      int display;
     1.5      SDL_Renderer *renderer;
     1.6  
     1.7 +    SDL_DisplayMode fullscreen_mode;
     1.8 +
     1.9      void *userdata;
    1.10      void *driverdata;
    1.11  };
    1.12 @@ -158,7 +160,6 @@
    1.13      SDL_DisplayMode *display_modes;
    1.14      SDL_DisplayMode desktop_mode;
    1.15      SDL_DisplayMode current_mode;
    1.16 -    SDL_DisplayMode fullscreen_mode;
    1.17      SDL_Palette *palette;
    1.18  
    1.19      Uint16 *gamma;
    1.20 @@ -213,7 +214,7 @@
    1.21       * Get a list of the available display modes. e.g.
    1.22       * SDL_AddDisplayMode(_this->current_display, mode)
    1.23       */
    1.24 -    void (*GetDisplayModes) (_THIS);
    1.25 +    void (*GetDisplayModes) (_THIS, SDL_VideoDisplay * display);
    1.26  
    1.27      /*
    1.28       * Setting the display mode is independent of creating windows, so
    1.29 @@ -221,19 +222,19 @@
    1.30       * their data updated accordingly, including the display surfaces
    1.31       * associated with them.
    1.32       */
    1.33 -    int (*SetDisplayMode) (_THIS, SDL_DisplayMode * mode);
    1.34 +    int (*SetDisplayMode) (_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
    1.35  
    1.36      /* Set the color entries of the display palette */
    1.37 -    int (*SetDisplayPalette) (_THIS, SDL_Palette * palette);
    1.38 +    int (*SetDisplayPalette) (_THIS, SDL_VideoDisplay * display, SDL_Palette * palette);
    1.39  
    1.40      /* Get the color entries of the display palette */
    1.41 -    int (*GetDisplayPalette) (_THIS, SDL_Palette * palette);
    1.42 +    int (*GetDisplayPalette) (_THIS, SDL_VideoDisplay * display, SDL_Palette * palette);
    1.43  
    1.44      /* Set the gamma ramp */
    1.45 -    int (*SetDisplayGammaRamp) (_THIS, Uint16 * ramp);
    1.46 +    int (*SetDisplayGammaRamp) (_THIS, SDL_VideoDisplay * display, Uint16 * ramp);
    1.47  
    1.48      /* Get the gamma ramp */
    1.49 -    int (*GetDisplayGammaRamp) (_THIS, Uint16 * ramp);
    1.50 +    int (*GetDisplayGammaRamp) (_THIS, SDL_VideoDisplay * display, Uint16 * ramp);
    1.51  
    1.52      /* * * */
    1.53      /*
    1.54 @@ -405,10 +406,19 @@
    1.55  extern SDL_VideoDevice *SDL_GetVideoDevice();
    1.56  extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode);
    1.57  extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display);
    1.58 -extern SDL_bool
    1.59 -SDL_AddDisplayMode(int displayIndex, const SDL_DisplayMode * mode);
    1.60 -extern void
    1.61 -SDL_AddRenderDriver(int displayIndex, const SDL_RenderDriver * driver);
    1.62 +extern SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode * mode);
    1.63 +extern int SDL_GetNumDisplayModesForDisplay(SDL_VideoDisplay * display);
    1.64 +extern int SDL_GetDisplayModeForDisplay(SDL_VideoDisplay * display, int index, SDL_DisplayMode * mode);
    1.65 +extern int SDL_GetDesktopDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode);
    1.66 +extern int SDL_GetCurrentDisplayModeForDisplay(SDL_VideoDisplay * display, SDL_DisplayMode * mode);
    1.67 +extern SDL_DisplayMode * SDL_GetClosestDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode, SDL_DisplayMode * closest);
    1.68 +extern int SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode);
    1.69 +extern int SDL_SetDisplayPaletteForDisplay(SDL_VideoDisplay * display, const SDL_Color * colors, int firstcolor, int ncolors);
    1.70 +extern int SDL_GetDisplayPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int firstcolor, int ncolors);
    1.71 +extern void SDL_AddRenderDriver(SDL_VideoDisplay *display, const SDL_RenderDriver * driver);
    1.72 +
    1.73 +extern int SDL_SetGammaRampForDisplay(SDL_VideoDisplay * display, const Uint16 * red, const Uint16 * green, const Uint16 * blue);
    1.74 +extern int SDL_GetGammaRampForDisplay(SDL_VideoDisplay * display, Uint16 * red, Uint16 * green, Uint16 * blue);
    1.75  
    1.76  extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
    1.77  extern SDL_Window *SDL_GetWindowFromID(SDL_WindowID windowID);