ran make indent
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402747
This commit is contained in:
parent
71656d10c7
commit
e27a71b3a7
3 changed files with 21 additions and 33 deletions
|
@ -209,58 +209,47 @@ struct SDL_SysWMinfo;
|
||||||
#define SDL_AllocSurface SDL_CreateRGBSurface
|
#define SDL_AllocSurface SDL_CreateRGBSurface
|
||||||
|
|
||||||
extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
|
extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
|
||||||
extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf,
|
extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
|
||||||
int maxlen);
|
extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
|
||||||
extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf,
|
|
||||||
int maxlen);
|
|
||||||
extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
|
extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
|
||||||
extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width,
|
extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width,
|
||||||
int height,
|
int height,
|
||||||
int bpp,
|
int bpp, Uint32 flags);
|
||||||
Uint32 flags);
|
|
||||||
extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format,
|
extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format,
|
||||||
Uint32 flags);
|
Uint32 flags);
|
||||||
extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width,
|
extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width,
|
||||||
int height,
|
int height,
|
||||||
int bpp,
|
int bpp, Uint32 flags);
|
||||||
Uint32 flags);
|
|
||||||
extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void);
|
extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void);
|
||||||
extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen,
|
extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen,
|
||||||
int numrects,
|
int numrects, SDL_Rect * rects);
|
||||||
SDL_Rect * rects);
|
|
||||||
extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen,
|
extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen,
|
||||||
Sint32 x,
|
Sint32 x,
|
||||||
Sint32 y,
|
Sint32 y, Uint32 w, Uint32 h);
|
||||||
Uint32 w,
|
|
||||||
Uint32 h);
|
|
||||||
extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen);
|
extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen);
|
||||||
extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface,
|
extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface,
|
||||||
Uint32 flag,
|
Uint32 flag, Uint8 alpha);
|
||||||
Uint8 alpha);
|
|
||||||
extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface);
|
extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface);
|
||||||
extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface * surface);
|
extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *
|
||||||
|
surface);
|
||||||
extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
|
extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
|
||||||
const char *icon);
|
const char *icon);
|
||||||
extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title,
|
extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title,
|
||||||
const char **icon);
|
const char **icon);
|
||||||
extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon,
|
extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask);
|
||||||
Uint8 * mask);
|
|
||||||
extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
|
extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
|
||||||
extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface);
|
extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface);
|
||||||
extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode);
|
extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode);
|
||||||
extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface,
|
extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface,
|
||||||
int flags,
|
int flags,
|
||||||
const SDL_Color * colors,
|
const SDL_Color * colors,
|
||||||
int firstcolor,
|
int firstcolor, int ncolors);
|
||||||
int ncolors);
|
|
||||||
extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface,
|
extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface,
|
||||||
const SDL_Color * colors,
|
const SDL_Color * colors,
|
||||||
int firstcolor,
|
int firstcolor, int ncolors);
|
||||||
int ncolors);
|
|
||||||
extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo *info);
|
extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo *info);
|
||||||
extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
|
extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
|
||||||
extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x,
|
extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);
|
||||||
Uint16 y);
|
|
||||||
extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width,
|
extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width,
|
||||||
int height,
|
int height,
|
||||||
Uint32 format,
|
Uint32 format,
|
||||||
|
@ -272,10 +261,8 @@ extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay,
|
||||||
SDL_Rect * dstrect);
|
SDL_Rect * dstrect);
|
||||||
extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay);
|
extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay);
|
||||||
extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
|
extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
|
||||||
extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay,
|
extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
|
||||||
int interval);
|
extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
|
||||||
extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay,
|
|
||||||
int *interval);
|
|
||||||
extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
|
extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
|
||||||
|
|
||||||
/* Ends C function definitions when using C++ */
|
/* Ends C function definitions when using C++ */
|
||||||
|
|
|
@ -230,6 +230,7 @@ SDL_CalculateBlit(SDL_Surface * surface)
|
||||||
/* See if we can do RLE acceleration */
|
/* See if we can do RLE acceleration */
|
||||||
if (surface->map->info.flags & SDL_COPY_RLE_DESIRED) {
|
if (surface->map->info.flags & SDL_COPY_RLE_DESIRED) {
|
||||||
if (SDL_RLESurface(surface) == 0) {
|
if (SDL_RLESurface(surface) == 0) {
|
||||||
|
surface->map->info.flags &= ~SDL_COPY_RLE_DESIRED;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -543,10 +543,10 @@ SDL_LowerBlit(SDL_Surface * src, SDL_Rect * srcrect,
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
/* just here for debugging */
|
/* just here for debugging */
|
||||||
/* printf("src = 0x%08X src->flags = %08X src->map->info.flags = %08x\ndst = 0x%08X dst->flags = %08X dst->map->info.flags = %08X\nsrc->map->blit = 0x%08x\n", */
|
/* printf */
|
||||||
/* src, dst->flags, src->map->info.flags, */
|
/* ("src = 0x%08X src->flags = %08X src->map->info.flags = %08x\ndst = 0x%08X dst->flags = %08X dst->map->info.flags = %08X\nsrc->map->blit = 0x%08x\n", */
|
||||||
/* dst, dst->flags, dst->map->info.flags, */
|
/* src, dst->flags, src->map->info.flags, dst, dst->flags, */
|
||||||
/* src->map->blit); */
|
/* dst->map->info.flags, src->map->blit); */
|
||||||
}
|
}
|
||||||
return (src->map->blit(src, srcrect, dst, dstrect));
|
return (src->map->blit(src, srcrect, dst, dstrect));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue