include/SDL_video.h
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
child 1669 9857d21967bb
     1.1 --- a/include/SDL_video.h	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/include/SDL_video.h	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -285,7 +285,7 @@
     1.4   *
     1.5   * \sa SDL_GetVideoDriver()
     1.6   */
     1.7 -extern DECLSPEC int SDLCALL SDL_GetNumVideoDrivers (void);
     1.8 +extern DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void);
     1.9  
    1.10  /**
    1.11   * \fn const char *SDL_GetVideoDriver(int index)
    1.12 @@ -297,7 +297,7 @@
    1.13   *
    1.14   * \sa SDL_GetNumVideoDrivers()
    1.15   */
    1.16 -extern DECLSPEC const char *SDLCALL SDL_GetVideoDriver (int index);
    1.17 +extern DECLSPEC const char *SDLCALL SDL_GetVideoDriver(int index);
    1.18  
    1.19  /**
    1.20   * \fn int SDL_VideoInit(const char *driver_name, Uint32 flags)
    1.21 @@ -315,8 +315,8 @@
    1.22   *
    1.23   * \sa SDL_VideoQuit()
    1.24   */
    1.25 -extern DECLSPEC int SDLCALL SDL_VideoInit (const char *driver_name,
    1.26 -                                           Uint32 flags);
    1.27 +extern DECLSPEC int SDLCALL SDL_VideoInit(const char *driver_name,
    1.28 +                                          Uint32 flags);
    1.29  
    1.30  /**
    1.31   * \fn void SDL_VideoQuit(void)
    1.32 @@ -327,7 +327,7 @@
    1.33   *
    1.34   * \sa SDL_VideoInit()
    1.35   */
    1.36 -extern DECLSPEC void SDLCALL SDL_VideoQuit (void);
    1.37 +extern DECLSPEC void SDLCALL SDL_VideoQuit(void);
    1.38  
    1.39  /**
    1.40   * \fn const char *SDL_GetCurrentVideoDriver(void)
    1.41 @@ -340,7 +340,7 @@
    1.42   * \sa SDL_GetNumVideoDrivers()
    1.43   * \sa SDL_GetVideoDriver()
    1.44   */
    1.45 -extern DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver (void);
    1.46 +extern DECLSPEC const char *SDLCALL SDL_GetCurrentVideoDriver(void);
    1.47  
    1.48  /**
    1.49   * \fn const SDL_VideoInfo *SDL_GetVideoInfo(void)
    1.50 @@ -350,7 +350,7 @@
    1.51   * \return A read-only pointer to information about the video hardware,
    1.52   *         or NULL if no video driver has been initialized.
    1.53   */
    1.54 -extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo (void);
    1.55 +extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
    1.56  
    1.57  /**
    1.58   * \fn int SDL_GetNumVideoDisplays(void)
    1.59 @@ -359,7 +359,7 @@
    1.60   *
    1.61   * \sa SDL_SelectVideoDisplay()
    1.62   */
    1.63 -extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays (void);
    1.64 +extern DECLSPEC int SDLCALL SDL_GetNumVideoDisplays(void);
    1.65  
    1.66  /**
    1.67   * \fn int SDL_SelectVideoDisplay(int index)
    1.68 @@ -370,7 +370,7 @@
    1.69   *
    1.70   * \sa SDL_GetNumVideoDisplays()
    1.71   */
    1.72 -extern DECLSPEC int SDLCALL SDL_SelectVideoDisplay (int index);
    1.73 +extern DECLSPEC int SDLCALL SDL_SelectVideoDisplay(int index);
    1.74  
    1.75  /**
    1.76   * \fn int SDL_GetNumDisplayModes(void)
    1.77 @@ -379,7 +379,7 @@
    1.78   *
    1.79   * \sa SDL_GetDisplayMode()
    1.80   */
    1.81 -extern DECLSPEC int SDLCALL SDL_GetNumDisplayModes (void);
    1.82 +extern DECLSPEC int SDLCALL SDL_GetNumDisplayModes(void);
    1.83  
    1.84  /**
    1.85   * \fn const SDL_DisplayMode *SDL_GetDisplayMode(int index)
    1.86 @@ -394,7 +394,7 @@
    1.87   *
    1.88   * \sa SDL_GetNumDisplayModes()
    1.89   */
    1.90 -extern DECLSPEC const SDL_DisplayMode *SDLCALL SDL_GetDisplayMode (int index);
    1.91 +extern DECLSPEC const SDL_DisplayMode *SDLCALL SDL_GetDisplayMode(int index);
    1.92  
    1.93  /**
    1.94   * \fn const SDL_DisplayMode *SDL_GetDesktopDisplayMode(void)
    1.95 @@ -402,7 +402,7 @@
    1.96   * \brief Retrieve information about the desktop display mode for the current display.
    1.97   */
    1.98  extern DECLSPEC const SDL_DisplayMode *SDLCALL
    1.99 -SDL_GetDesktopDisplayMode (void);
   1.100 +SDL_GetDesktopDisplayMode(void);
   1.101  
   1.102  /**
   1.103   * \fn const SDL_DisplayMode *SDL_GetCurrentDisplayMode(void)
   1.104 @@ -410,7 +410,7 @@
   1.105   * \brief Retrieve information about the current display mode.
   1.106   */
   1.107  extern DECLSPEC const SDL_DisplayMode *SDLCALL
   1.108 -SDL_GetCurrentDisplayMode (void);
   1.109 +SDL_GetCurrentDisplayMode(void);
   1.110  
   1.111  /**
   1.112   * \fn SDL_DisplayMode *SDL_GetClosestDisplayMode(const SDL_DisplayMode *mode, SDL_DisplayMode *closest)
   1.113 @@ -427,12 +427,11 @@
   1.114   * \sa SDL_GetNumDisplayModes()
   1.115   * \sa SDL_GetDisplayMode()
   1.116   */
   1.117 -extern DECLSPEC SDL_DisplayMode *SDLCALL SDL_GetClosestDisplayMode (const
   1.118 -                                                                    SDL_DisplayMode
   1.119 -                                                                    * mode,
   1.120 -                                                                    SDL_DisplayMode
   1.121 -                                                                    *
   1.122 -                                                                    closest);
   1.123 +extern DECLSPEC SDL_DisplayMode *SDLCALL SDL_GetClosestDisplayMode(const
   1.124 +                                                                   SDL_DisplayMode
   1.125 +                                                                   * mode,
   1.126 +                                                                   SDL_DisplayMode
   1.127 +                                                                   * closest);
   1.128  
   1.129  /**
   1.130   * \fn int SDL_SetDisplayMode(const SDL_DisplayMode *mode)
   1.131 @@ -443,7 +442,7 @@
   1.132   *
   1.133   * \return 0 on success, or -1 if setting the display mode failed.
   1.134   */
   1.135 -extern DECLSPEC int SDLCALL SDL_SetDisplayMode (const SDL_DisplayMode * mode);
   1.136 +extern DECLSPEC int SDLCALL SDL_SetDisplayMode(const SDL_DisplayMode * mode);
   1.137  
   1.138  /**
   1.139   * \fn SDL_WindowID SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
   1.140 @@ -463,9 +462,9 @@
   1.141   *
   1.142   * \sa SDL_DestroyWindow()
   1.143   */
   1.144 -extern DECLSPEC SDL_WindowID SDLCALL SDL_CreateWindow (const char *title,
   1.145 -                                                       int x, int y, int w,
   1.146 -                                                       int h, Uint32 flags);
   1.147 +extern DECLSPEC SDL_WindowID SDLCALL SDL_CreateWindow(const char *title,
   1.148 +                                                      int x, int y, int w,
   1.149 +                                                      int h, Uint32 flags);
   1.150  
   1.151  /**
   1.152   * \fn SDL_WindowID SDL_CreateWindowFrom(void *data)
   1.153 @@ -480,14 +479,14 @@
   1.154   *
   1.155   * \sa SDL_DestroyWindow()
   1.156   */
   1.157 -extern DECLSPEC SDL_WindowID SDLCALL SDL_CreateWindowFrom (void *data);
   1.158 +extern DECLSPEC SDL_WindowID SDLCALL SDL_CreateWindowFrom(void *data);
   1.159  
   1.160  /**
   1.161   * \fn Uint32 SDL_GetWindowFlags(SDL_WindowID windowID)
   1.162   *
   1.163   * \brief Get the window flags.
   1.164   */
   1.165 -extern DECLSPEC Uint32 SDLCALL SDL_GetWindowFlags (SDL_WindowID windowID);
   1.166 +extern DECLSPEC Uint32 SDLCALL SDL_GetWindowFlags(SDL_WindowID windowID);
   1.167  
   1.168  /**
   1.169   * \fn void SDL_SetWindowTitle(SDL_WindowID windowID, const char *title)
   1.170 @@ -496,8 +495,8 @@
   1.171   *
   1.172   * \sa SDL_GetWindowTitle()
   1.173   */
   1.174 -extern DECLSPEC void SDLCALL SDL_SetWindowTitle (SDL_WindowID windowID,
   1.175 -                                                 const char *title);
   1.176 +extern DECLSPEC void SDLCALL SDL_SetWindowTitle(SDL_WindowID windowID,
   1.177 +                                                const char *title);
   1.178  
   1.179  /**
   1.180   * \fn const char *SDL_GetWindowTitle(SDL_WindowID windowID)
   1.181 @@ -506,8 +505,7 @@
   1.182   *
   1.183   * \sa SDL_SetWindowTitle()
   1.184   */
   1.185 -extern DECLSPEC const char *SDLCALL SDL_GetWindowTitle (SDL_WindowID
   1.186 -                                                        windowID);
   1.187 +extern DECLSPEC const char *SDLCALL SDL_GetWindowTitle(SDL_WindowID windowID);
   1.188  
   1.189  /**
   1.190   * \fn void SDL_SetWindowIcon(SDL_Surface *icon)
   1.191 @@ -518,7 +516,7 @@
   1.192   *
   1.193   * FIXME: The icon needs to be set before the window is first shown.  Should some icon representation be part of the window creation data?
   1.194   */
   1.195 -extern DECLSPEC void SDLCALL SDL_SetWindowIcon (SDL_Surface * icon);
   1.196 +extern DECLSPEC void SDLCALL SDL_SetWindowIcon(SDL_Surface * icon);
   1.197  
   1.198  /**
   1.199   * \fn void SDL_SetWindowData(SDL_WindowID windowID, void *userdata)
   1.200 @@ -527,8 +525,8 @@
   1.201   *
   1.202   * \sa SDL_GetWindowData()
   1.203   */
   1.204 -extern DECLSPEC void SDLCALL SDL_SetWindowData (SDL_WindowID windowID,
   1.205 -                                                void *userdata);
   1.206 +extern DECLSPEC void SDLCALL SDL_SetWindowData(SDL_WindowID windowID,
   1.207 +                                               void *userdata);
   1.208  
   1.209  /**
   1.210   * \fn void *SDL_GetWindowData(SDL_WindowID windowID)
   1.211 @@ -537,7 +535,7 @@
   1.212   *
   1.213   * \sa SDL_SetWindowData()
   1.214   */
   1.215 -extern DECLSPEC void *SDLCALL SDL_GetWindowData (SDL_WindowID windowID);
   1.216 +extern DECLSPEC void *SDLCALL SDL_GetWindowData(SDL_WindowID windowID);
   1.217  
   1.218  /**
   1.219   * \fn void SDL_SetWindowPosition(SDL_WindowID windowID, int x, int y)
   1.220 @@ -546,8 +544,8 @@
   1.221   *
   1.222   * \sa SDL_GetWindowPosition()
   1.223   */
   1.224 -extern DECLSPEC void SDLCALL SDL_SetWindowPosition (SDL_WindowID windowID,
   1.225 -                                                    int x, int y);
   1.226 +extern DECLSPEC void SDLCALL SDL_SetWindowPosition(SDL_WindowID windowID,
   1.227 +                                                   int x, int y);
   1.228  
   1.229  /**
   1.230   * \fn void SDL_GetWindowPosition(SDL_WindowID windowID, int *x, int *y)
   1.231 @@ -556,8 +554,8 @@
   1.232   *
   1.233   * \sa SDL_SetWindowPosition()
   1.234   */
   1.235 -extern DECLSPEC void SDLCALL SDL_GetWindowPosition (SDL_WindowID windowID,
   1.236 -                                                    int *x, int *y);
   1.237 +extern DECLSPEC void SDLCALL SDL_GetWindowPosition(SDL_WindowID windowID,
   1.238 +                                                   int *x, int *y);
   1.239  
   1.240  /**
   1.241   * \fn void SDL_SetWindowSize(SDL_WindowID windowID, int w, int w)
   1.242 @@ -569,8 +567,8 @@
   1.243   *
   1.244   * \sa SDL_GetWindowSize()
   1.245   */
   1.246 -extern DECLSPEC void SDLCALL SDL_SetWindowSize (SDL_WindowID windowID, int w,
   1.247 -                                                int h);
   1.248 +extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_WindowID windowID, int w,
   1.249 +                                               int h);
   1.250  
   1.251  /**
   1.252   * \fn void SDL_GetWindowSize(SDL_WindowID windowID, int *w, int *w)
   1.253 @@ -579,8 +577,8 @@
   1.254   *
   1.255   * \sa SDL_SetWindowSize()
   1.256   */
   1.257 -extern DECLSPEC void SDLCALL SDL_GetWindowSize (SDL_WindowID windowID, int *w,
   1.258 -                                                int *h);
   1.259 +extern DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_WindowID windowID, int *w,
   1.260 +                                               int *h);
   1.261  
   1.262  /**
   1.263   * \fn void SDL_ShowWindow(SDL_WindowID windowID)
   1.264 @@ -589,7 +587,7 @@
   1.265   *
   1.266   * \sa SDL_HideWindow()
   1.267   */
   1.268 -extern DECLSPEC void SDLCALL SDL_ShowWindow (SDL_WindowID windowID);
   1.269 +extern DECLSPEC void SDLCALL SDL_ShowWindow(SDL_WindowID windowID);
   1.270  
   1.271  /**
   1.272   * \fn void SDL_HideWindow(SDL_WindowID windowID)
   1.273 @@ -598,14 +596,14 @@
   1.274   *
   1.275   * \sa SDL_ShowWindow()
   1.276   */
   1.277 -extern DECLSPEC void SDLCALL SDL_HideWindow (SDL_WindowID windowID);
   1.278 +extern DECLSPEC void SDLCALL SDL_HideWindow(SDL_WindowID windowID);
   1.279  
   1.280  /**
   1.281   * \fn void SDL_RaiseWindow(SDL_WindowID windowID)
   1.282   *
   1.283   * \brief Raise the window so it's above other windows.
   1.284   */
   1.285 -extern DECLSPEC void SDLCALL SDL_RaiseWindow (SDL_WindowID windowID);
   1.286 +extern DECLSPEC void SDLCALL SDL_RaiseWindow(SDL_WindowID windowID);
   1.287  
   1.288  /**
   1.289   * \fn void SDL_MaximizeWindow(SDL_WindowID windowID)
   1.290 @@ -614,7 +612,7 @@
   1.291   *
   1.292   * \sa SDL_RestoreWindow()
   1.293   */
   1.294 -extern DECLSPEC void SDLCALL SDL_MaximizeWindow (SDL_WindowID windowID);
   1.295 +extern DECLSPEC void SDLCALL SDL_MaximizeWindow(SDL_WindowID windowID);
   1.296  
   1.297  /**
   1.298   * \fn void SDL_MinimizeWindow(SDL_WindowID windowID)
   1.299 @@ -623,7 +621,7 @@
   1.300   *
   1.301   * \sa SDL_RestoreWindow()
   1.302   */
   1.303 -extern DECLSPEC void SDLCALL SDL_MinimizeWindow (SDL_WindowID windowID);
   1.304 +extern DECLSPEC void SDLCALL SDL_MinimizeWindow(SDL_WindowID windowID);
   1.305  
   1.306  /**
   1.307   * \fn void SDL_RestoreWindow(SDL_WindowID windowID)
   1.308 @@ -633,7 +631,7 @@
   1.309   * \sa SDL_MaximizeWindow()
   1.310   * \sa SDL_MinimizeWindow()
   1.311   */
   1.312 -extern DECLSPEC void SDLCALL SDL_RestoreWindow (SDL_WindowID windowID);
   1.313 +extern DECLSPEC void SDLCALL SDL_RestoreWindow(SDL_WindowID windowID);
   1.314  
   1.315  /**
   1.316   * \fn void SDL_SetWindowGrab(SDL_WindowID windowID, int mode)
   1.317 @@ -645,8 +643,8 @@
   1.318   * \sa SDL_GrabMode
   1.319   * \sa SDL_GetWindowGrab()
   1.320   */
   1.321 -extern DECLSPEC void SDLCALL SDL_SetWindowGrab (SDL_WindowID windowID,
   1.322 -                                                int mode);
   1.323 +extern DECLSPEC void SDLCALL SDL_SetWindowGrab(SDL_WindowID windowID,
   1.324 +                                               int mode);
   1.325  
   1.326  /**
   1.327   * \fn int SDL_GetWindowGrab(SDL_WindowID windowID)
   1.328 @@ -658,24 +656,24 @@
   1.329   * \sa SDL_GrabMode
   1.330   * \sa SDL_SetWindowGrab()
   1.331   */
   1.332 -extern DECLSPEC int SDLCALL SDL_GetWindowGrab (SDL_WindowID windowID);
   1.333 +extern DECLSPEC int SDLCALL SDL_GetWindowGrab(SDL_WindowID windowID);
   1.334  
   1.335  /**
   1.336   * \fn void SDL_DestroyWindow(SDL_WindowID windowID)
   1.337   *
   1.338   * \brief Destroy a window.
   1.339   */
   1.340 -extern DECLSPEC void SDLCALL SDL_DestroyWindow (SDL_WindowID windowID);
   1.341 +extern DECLSPEC void SDLCALL SDL_DestroyWindow(SDL_WindowID windowID);
   1.342  
   1.343  /**
   1.344   * \fn SDL_Surface *SDL_CreateWindowSurface (SDL_WindowID windowID, Uint32 format, Uint32 flags)
   1.345   *
   1.346   * \brief Create an SDL_Surface representing the drawing area of the window.
   1.347   */
   1.348 -extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateWindowSurface (SDL_WindowID
   1.349 -                                                              windowID,
   1.350 -                                                              Uint32 format,
   1.351 -                                                              Uint32 flags);
   1.352 +extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateWindowSurface(SDL_WindowID
   1.353 +                                                             windowID,
   1.354 +                                                             Uint32 format,
   1.355 +                                                             Uint32 flags);
   1.356  
   1.357  /*
   1.358   * Makes sure the given list of rectangles is updated on the given screen.
   1.359 @@ -698,7 +696,7 @@
   1.360   * setting the video mode for this function to perform hardware flipping.
   1.361   * This function returns 0 if successful, or -1 if there was an error.
   1.362   */
   1.363 -extern DECLSPEC int SDLCALL SDL_Flip (SDL_Surface * screen);
   1.364 +extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen);
   1.365  
   1.366  /*
   1.367   * Set the gamma correction for each of the color channels.
   1.368 @@ -708,7 +706,7 @@
   1.369   * be emulated using gamma ramps, if available.  If successful, this
   1.370   * function returns 0, otherwise it returns -1.
   1.371   */
   1.372 -extern DECLSPEC int SDLCALL SDL_SetGamma (float red, float green, float blue);
   1.373 +extern DECLSPEC int SDLCALL SDL_SetGamma(float red, float green, float blue);
   1.374  
   1.375  /*
   1.376   * Set the gamma translation table for the red, green, and blue channels
   1.377 @@ -722,9 +720,9 @@
   1.378   * hardware does not support gamma translation, or otherwise fails,
   1.379   * this function will return -1.
   1.380   */
   1.381 -extern DECLSPEC int SDLCALL SDL_SetGammaRamp (const Uint16 * red,
   1.382 -                                              const Uint16 * green,
   1.383 -                                              const Uint16 * blue);
   1.384 +extern DECLSPEC int SDLCALL SDL_SetGammaRamp(const Uint16 * red,
   1.385 +                                             const Uint16 * green,
   1.386 +                                             const Uint16 * blue);
   1.387  
   1.388  /*
   1.389   * Retrieve the current values of the gamma translation tables.
   1.390 @@ -735,8 +733,8 @@
   1.391   * hardware does not support gamma translation, or otherwise fails,
   1.392   * this function will return -1.
   1.393   */
   1.394 -extern DECLSPEC int SDLCALL SDL_GetGammaRamp (Uint16 * red, Uint16 * green,
   1.395 -                                              Uint16 * blue);
   1.396 +extern DECLSPEC int SDLCALL SDL_GetGammaRamp(Uint16 * red, Uint16 * green,
   1.397 +                                             Uint16 * blue);
   1.398  
   1.399  /*
   1.400   * Sets a portion of the colormap for the given 8-bit surface.  If 'surface'
   1.401 @@ -753,9 +751,9 @@
   1.402   * you desire, even if the window colormap has to be warped or run under
   1.403   * emulation.
   1.404   */
   1.405 -extern DECLSPEC int SDLCALL SDL_SetColors (SDL_Surface * surface,
   1.406 -                                           SDL_Color * colors, int firstcolor,
   1.407 -                                           int ncolors);
   1.408 +extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface,
   1.409 +                                          SDL_Color * colors, int firstcolor,
   1.410 +                                          int ncolors);
   1.411  
   1.412  /*
   1.413   * Maps an RGB triple to an opaque pixel value for a given pixel format
   1.414 @@ -766,22 +764,22 @@
   1.415  /*
   1.416   * Maps an RGBA quadruple to a pixel value for a given pixel format
   1.417   */
   1.418 -extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA (SDL_PixelFormat * format,
   1.419 -                                            Uint8 r, Uint8 g, Uint8 b,
   1.420 -                                            Uint8 a);
   1.421 +extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(SDL_PixelFormat * format,
   1.422 +                                           Uint8 r, Uint8 g, Uint8 b,
   1.423 +                                           Uint8 a);
   1.424  
   1.425  /*
   1.426   * Maps a pixel value into the RGB components for a given pixel format
   1.427   */
   1.428 -extern DECLSPEC void SDLCALL SDL_GetRGB (Uint32 pixel, SDL_PixelFormat * fmt,
   1.429 -                                         Uint8 * r, Uint8 * g, Uint8 * b);
   1.430 +extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, SDL_PixelFormat * fmt,
   1.431 +                                        Uint8 * r, Uint8 * g, Uint8 * b);
   1.432  
   1.433  /*
   1.434   * Maps a pixel value into the RGBA components for a given pixel format
   1.435   */
   1.436 -extern DECLSPEC void SDLCALL SDL_GetRGBA (Uint32 pixel, SDL_PixelFormat * fmt,
   1.437 -                                          Uint8 * r, Uint8 * g, Uint8 * b,
   1.438 -                                          Uint8 * a);
   1.439 +extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel, SDL_PixelFormat * fmt,
   1.440 +                                         Uint8 * r, Uint8 * g, Uint8 * b,
   1.441 +                                         Uint8 * a);
   1.442  
   1.443  /*
   1.444   * Allocate and free an RGB surface (must be called after SDL_SetVideoMode)
   1.445 @@ -821,16 +819,16 @@
   1.446  extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurface
   1.447      (Uint32 flags, int width, int height, int depth,
   1.448       Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
   1.449 -extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceFrom (void *pixels,
   1.450 -                                                               int width,
   1.451 -                                                               int height,
   1.452 -                                                               int depth,
   1.453 -                                                               int pitch,
   1.454 -                                                               Uint32 Rmask,
   1.455 -                                                               Uint32 Gmask,
   1.456 -                                                               Uint32 Bmask,
   1.457 -                                                               Uint32 Amask);
   1.458 -extern DECLSPEC void SDLCALL SDL_FreeSurface (SDL_Surface * surface);
   1.459 +extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels,
   1.460 +                                                              int width,
   1.461 +                                                              int height,
   1.462 +                                                              int depth,
   1.463 +                                                              int pitch,
   1.464 +                                                              Uint32 Rmask,
   1.465 +                                                              Uint32 Gmask,
   1.466 +                                                              Uint32 Bmask,
   1.467 +                                                              Uint32 Amask);
   1.468 +extern DECLSPEC void SDLCALL SDL_FreeSurface(SDL_Surface * surface);
   1.469  
   1.470  /*
   1.471   * SDL_LockSurface() sets up a surface for directly accessing the pixels.
   1.472 @@ -850,8 +848,8 @@
   1.473   *
   1.474   * SDL_LockSurface() returns 0, or -1 if the surface couldn't be locked.
   1.475   */
   1.476 -extern DECLSPEC int SDLCALL SDL_LockSurface (SDL_Surface * surface);
   1.477 -extern DECLSPEC void SDLCALL SDL_UnlockSurface (SDL_Surface * surface);
   1.478 +extern DECLSPEC int SDLCALL SDL_LockSurface(SDL_Surface * surface);
   1.479 +extern DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface * surface);
   1.480  
   1.481  /*
   1.482   * Load a surface from a seekable SDL data source (memory or file.)
   1.483 @@ -859,8 +857,8 @@
   1.484   * Returns the new surface, or NULL if there was an error.
   1.485   * The new surface should be freed with SDL_FreeSurface().
   1.486   */
   1.487 -extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadBMP_RW (SDL_RWops * src,
   1.488 -                                                     int freesrc);
   1.489 +extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadBMP_RW(SDL_RWops * src,
   1.490 +                                                    int freesrc);
   1.491  
   1.492  /* Convenience macro -- load a surface from a file */
   1.493  #define SDL_LoadBMP(file)	SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1)
   1.494 @@ -904,8 +902,8 @@
   1.495   *
   1.496   * The 'alpha' parameter is ignored for surfaces that have an alpha channel.
   1.497   */
   1.498 -extern DECLSPEC int SDLCALL SDL_SetAlpha (SDL_Surface * surface, Uint32 flag,
   1.499 -                                          Uint8 alpha);
   1.500 +extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface, Uint32 flag,
   1.501 +                                         Uint8 alpha);
   1.502  
   1.503  /*
   1.504   * Sets the clipping rectangle for the destination surface in a blit.
   1.505 @@ -919,16 +917,16 @@
   1.506   * Note that blits are automatically clipped to the edges of the source
   1.507   * and destination surfaces.
   1.508   */
   1.509 -extern DECLSPEC SDL_bool SDLCALL SDL_SetClipRect (SDL_Surface * surface,
   1.510 -                                                  const SDL_Rect * rect);
   1.511 +extern DECLSPEC SDL_bool SDLCALL SDL_SetClipRect(SDL_Surface * surface,
   1.512 +                                                 const SDL_Rect * rect);
   1.513  
   1.514  /*
   1.515   * Gets the clipping rectangle for the destination surface in a blit.
   1.516   * 'rect' must be a pointer to a valid rectangle which will be filled
   1.517   * with the correct values.
   1.518   */
   1.519 -extern DECLSPEC void SDLCALL SDL_GetClipRect (SDL_Surface * surface,
   1.520 -                                              SDL_Rect * rect);
   1.521 +extern DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface * surface,
   1.522 +                                             SDL_Rect * rect);
   1.523  
   1.524  /*
   1.525   * Creates a new surface of the specified format, and then copies and maps 
   1.526 @@ -1052,8 +1050,7 @@
   1.527   *
   1.528   * If the conversion fails or runs out of memory, it returns NULL
   1.529   */
   1.530 -extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat (SDL_Surface *
   1.531 -                                                        surface);
   1.532 +extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface);
   1.533  
   1.534  /* 
   1.535   * This function takes a surface and copies it to a new surface of the
   1.536 @@ -1067,8 +1064,8 @@
   1.537   *
   1.538   * If the conversion fails or runs out of memory, it returns NULL
   1.539   */
   1.540 -extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha (SDL_Surface *
   1.541 -                                                             surface);
   1.542 +extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *
   1.543 +                                                            surface);
   1.544  
   1.545  
   1.546  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
   1.547 @@ -1080,15 +1077,15 @@
   1.548     the contents of the display surface underneath the area where the overlay
   1.549     is shown is undefined - it may be overwritten with the converted YUV data.
   1.550  */
   1.551 -extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay (int width,
   1.552 -                                                           int height,
   1.553 -                                                           Uint32 format,
   1.554 -                                                           SDL_Surface *
   1.555 -                                                           display);
   1.556 +extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width,
   1.557 +                                                          int height,
   1.558 +                                                          Uint32 format,
   1.559 +                                                          SDL_Surface *
   1.560 +                                                          display);
   1.561  
   1.562  /* Lock an overlay for direct access, and unlock it when you are done */
   1.563 -extern DECLSPEC int SDLCALL SDL_LockYUVOverlay (SDL_Overlay * overlay);
   1.564 -extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay (SDL_Overlay * overlay);
   1.565 +extern DECLSPEC int SDLCALL SDL_LockYUVOverlay(SDL_Overlay * overlay);
   1.566 +extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay);
   1.567  
   1.568  /* Blit a video overlay to the display surface.
   1.569     The contents of the video surface underneath the blit destination are
   1.570 @@ -1096,11 +1093,11 @@
   1.571     The width and height of the destination rectangle may be different from
   1.572     that of the overlay, but currently only 2x scaling is supported.
   1.573  */
   1.574 -extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay (SDL_Overlay * overlay,
   1.575 -                                                   SDL_Rect * dstrect);
   1.576 +extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay,
   1.577 +                                                  SDL_Rect * dstrect);
   1.578  
   1.579  /* Free a video overlay */
   1.580 -extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay (SDL_Overlay * overlay);
   1.581 +extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay);
   1.582  
   1.583  
   1.584  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
   1.585 @@ -1113,17 +1110,17 @@
   1.586   * If you do this, you need to retrieve all of the GL functions used in
   1.587   * your program from the dynamic library using SDL_GL_GetProcAddress().
   1.588   */
   1.589 -extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary (const char *path);
   1.590 +extern DECLSPEC int SDLCALL SDL_GL_LoadLibrary(const char *path);
   1.591  
   1.592  /*
   1.593   * Get the address of a GL function
   1.594   */
   1.595 -extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress (const char *proc);
   1.596 +extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc);
   1.597  
   1.598  /*
   1.599   * Set an attribute of the OpenGL subsystem before window creation.
   1.600   */
   1.601 -extern DECLSPEC int SDLCALL SDL_GL_SetAttribute (SDL_GLattr attr, int value);
   1.602 +extern DECLSPEC int SDLCALL SDL_GL_SetAttribute(SDL_GLattr attr, int value);
   1.603  
   1.604  /*
   1.605   * Get an attribute of the OpenGL subsystem from the windowing
   1.606 @@ -1134,18 +1131,18 @@
   1.607   * Developers should track the values they pass into SDL_GL_SetAttribute
   1.608   * themselves if they want to retrieve these values.
   1.609   */
   1.610 -extern DECLSPEC int SDLCALL SDL_GL_GetAttribute (SDL_GLattr attr, int *value);
   1.611 +extern DECLSPEC int SDLCALL SDL_GL_GetAttribute(SDL_GLattr attr, int *value);
   1.612  
   1.613  /*
   1.614   * Swap the OpenGL buffers, if double-buffering is supported.
   1.615   */
   1.616 -extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers (void);
   1.617 +extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
   1.618  
   1.619  /* Not in public API at the moment - do not use! */
   1.620 -extern DECLSPEC int SDLCALL SDL_SoftStretch (SDL_Surface * src,
   1.621 -                                             SDL_Rect * srcrect,
   1.622 -                                             SDL_Surface * dst,
   1.623 -                                             SDL_Rect * dstrect);
   1.624 +extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface * src,
   1.625 +                                            SDL_Rect * srcrect,
   1.626 +                                            SDL_Surface * dst,
   1.627 +                                            SDL_Rect * dstrect);
   1.628  
   1.629  /* Ends C function definitions when using C++ */
   1.630  #ifdef __cplusplus