comparison include/SDL_compat.h @ 2329:c1a390f6a819

ran make indent
author Bob Pendleton <bob@pendleton.com>
date Fri, 14 Mar 2008 20:43:44 +0000
parents 91e601d9df8b
children fd3f0f1147e7
comparison
equal deleted inserted replaced
2328:91e601d9df8b 2329:c1a390f6a819
207 207
208 #define SDL_SetModuleHandle(x) 208 #define SDL_SetModuleHandle(x)
209 #define SDL_AllocSurface SDL_CreateRGBSurface 209 #define SDL_AllocSurface SDL_CreateRGBSurface
210 210
211 extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void); 211 extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
212 extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, 212 extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
213 int maxlen); 213 extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
214 extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf,
215 int maxlen);
216 extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void); 214 extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
217 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, 215 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width,
218 int height, 216 int height,
219 int bpp, 217 int bpp, Uint32 flags);
220 Uint32 flags);
221 extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format, 218 extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format,
222 Uint32 flags); 219 Uint32 flags);
223 extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, 220 extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width,
224 int height, 221 int height,
225 int bpp, 222 int bpp, Uint32 flags);
226 Uint32 flags);
227 extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void); 223 extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void);
228 extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen, 224 extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen,
229 int numrects, 225 int numrects, SDL_Rect * rects);
230 SDL_Rect * rects);
231 extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen, 226 extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen,
232 Sint32 x, 227 Sint32 x,
233 Sint32 y, 228 Sint32 y, Uint32 w, Uint32 h);
234 Uint32 w,
235 Uint32 h);
236 extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen); 229 extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen);
237 extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface, 230 extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface,
238 Uint32 flag, 231 Uint32 flag, Uint8 alpha);
239 Uint8 alpha);
240 extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface); 232 extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface);
241 extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface * surface); 233 extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *
234 surface);
242 extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title, 235 extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
243 const char *icon); 236 const char *icon);
244 extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title, 237 extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title,
245 const char **icon); 238 const char **icon);
246 extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, 239 extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask);
247 Uint8 * mask);
248 extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void); 240 extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
249 extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface); 241 extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface);
250 extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode); 242 extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode);
251 extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface, 243 extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface,
252 int flags, 244 int flags,
253 const SDL_Color * colors, 245 const SDL_Color * colors,
254 int firstcolor, 246 int firstcolor, int ncolors);
255 int ncolors);
256 extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface, 247 extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface,
257 const SDL_Color * colors, 248 const SDL_Color * colors,
258 int firstcolor, 249 int firstcolor, int ncolors);
259 int ncolors);
260 extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo *info); 250 extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo *info);
261 extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void); 251 extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
262 extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, 252 extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);
263 Uint16 y);
264 extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width, 253 extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width,
265 int height, 254 int height,
266 Uint32 format, 255 Uint32 format,
267 SDL_Surface * 256 SDL_Surface *
268 display); 257 display);
270 extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay); 259 extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay);
271 extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay, 260 extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay,
272 SDL_Rect * dstrect); 261 SDL_Rect * dstrect);
273 extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay); 262 extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay);
274 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); 263 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
275 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, 264 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
276 int interval); 265 extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
277 extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay,
278 int *interval);
279 extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); 266 extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
280 267
281 /* Ends C function definitions when using C++ */ 268 /* Ends C function definitions when using C++ */
282 #ifdef __cplusplus 269 #ifdef __cplusplus
283 /* *INDENT-OFF* */ 270 /* *INDENT-OFF* */