include/SDL_compat.h
changeset 2328 91e601d9df8b
parent 2303 d87417504c75
child 2329 c1a390f6a819
     1.1 --- a/include/SDL_compat.h	Fri Mar 07 23:57:15 2008 +0000
     1.2 +++ b/include/SDL_compat.h	Fri Mar 14 18:17:49 2008 +0000
     1.3 @@ -209,43 +209,58 @@
     1.4  #define SDL_AllocSurface    SDL_CreateRGBSurface
     1.5  
     1.6  extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
     1.7 -extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
     1.8 -extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
     1.9 +extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf,
    1.10 +                                                  int maxlen);
    1.11 +extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf,
    1.12 +                                                  int maxlen);
    1.13  extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
    1.14 -extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, int height, int bpp,
    1.15 +extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width,
    1.16 +                                            int height,
    1.17 +                                            int bpp,
    1.18                                              Uint32 flags);
    1.19  extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format,
    1.20                                                   Uint32 flags);
    1.21 -extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, int height,
    1.22 -                                                      int bpp, Uint32 flags);
    1.23 +extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width,
    1.24 +                                                      int height,
    1.25 +                                                      int bpp,
    1.26 +                                                      Uint32 flags);
    1.27  extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void);
    1.28  extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen,
    1.29 -                                             int numrects, SDL_Rect * rects);
    1.30 -extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen, Sint32 x,
    1.31 -                                            Sint32 y, Uint32 w, Uint32 h);
    1.32 +                                             int numrects,
    1.33 +                                             SDL_Rect * rects);
    1.34 +extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen,
    1.35 +                                            Sint32 x,
    1.36 +                                            Sint32 y,
    1.37 +                                            Uint32 w,
    1.38 +                                            Uint32 h);
    1.39  extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen);
    1.40 -extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface, Uint32 flag,
    1.41 +extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface,
    1.42 +                                         Uint32 flag,
    1.43                                           Uint8 alpha);
    1.44  extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface);
    1.45 -extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *
    1.46 -                                                            surface);
    1.47 +extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface * surface);
    1.48  extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
    1.49                                                 const char *icon);
    1.50  extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title,
    1.51                                                 const char **icon);
    1.52 -extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask);
    1.53 +extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon,
    1.54 +                                            Uint8 * mask);
    1.55  extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
    1.56  extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface);
    1.57  extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode);
    1.58 -extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface, int flags,
    1.59 +extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface,
    1.60 +                                           int flags,
    1.61                                             const SDL_Color * colors,
    1.62 -                                           int firstcolor, int ncolors);
    1.63 +                                           int firstcolor,
    1.64 +                                           int ncolors);
    1.65  extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface,
    1.66                                            const SDL_Color * colors,
    1.67 -                                          int firstcolor, int ncolors);
    1.68 +                                          int firstcolor,
    1.69 +                                          int ncolors);
    1.70  extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo *info);
    1.71  extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
    1.72 -extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);
    1.73 +extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x,
    1.74 +                                           Uint16 y);
    1.75  extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width,
    1.76                                                            int height,
    1.77                                                            Uint32 format,
    1.78 @@ -257,8 +272,10 @@
    1.79                                                    SDL_Rect * dstrect);
    1.80  extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay);
    1.81  extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
    1.82 -extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
    1.83 -extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
    1.84 +extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay,
    1.85 +int interval);
    1.86 +extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay,
    1.87 +                                              int *interval);
    1.88  extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
    1.89  
    1.90  /* Ends C function definitions when using C++ */