Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11render.c @ 4619:b9a205e6369f
Moved brace to the beginning of the line for the beginning of functions
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 28 Jul 2010 01:05:58 -0700 |
parents | 844b5ef4b149 |
children | f4a93bde905f |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11render.c Wed Jul 28 00:54:23 2010 -0700 +++ b/src/video/x11/SDL_x11render.c Wed Jul 28 01:05:58 2010 -0700 @@ -184,7 +184,8 @@ #ifdef SDL_VIDEO_DRIVER_X11_XRENDER static SDL_bool -CheckXRender(Display *display, int *major, int *minor) { +CheckXRender(Display *display, int *major, int *minor) +{ const char *env; *major = *minor = 0; @@ -209,7 +210,8 @@ #ifdef SDL_VIDEO_DRIVER_X11_XFIXES static SDL_bool -CheckXFixes(Display *display, int *major, int *minor) { +CheckXFixes(Display *display, int *major, int *minor) +{ const char *env; *major = *minor = 0; @@ -234,7 +236,8 @@ #ifdef SDL_VIDEO_DRIVER_X11_XDAMAGE static SDL_bool -CheckXDamage(Display *display, int *major, int *minor) { +CheckXDamage(Display *display, int *major, int *minor) +{ const char *env; *major = *minor = 0; @@ -259,7 +262,8 @@ #ifdef SDL_VIDEO_DRIVER_X11_XRENDER static Uint32 -XRenderPictFormatToSDLPixelFormatEnum(XRenderPictFormat *pict_format) { +XRenderPictFormatToSDLPixelFormatEnum(XRenderPictFormat *pict_format) +{ if (pict_format->type != PictTypeDirect) { SDL_SetError("Indexed pict formats not supported ATM"); return 0; @@ -716,7 +720,8 @@ #ifdef SDL_VIDEO_DRIVER_X11_XRENDER static void -SDLMaskToXRenderMask(Uint32 sdl_mask, short *comp, short *compMask) { +SDLMaskToXRenderMask(Uint32 sdl_mask, short *comp, short *compMask) +{ if (sdl_mask == 0) { *comp = 0; *compMask = 0; @@ -735,7 +740,8 @@ } static XRenderPictFormat* -PixelFormatEnumToXRenderPictFormat(SDL_Renderer * renderer, Uint32 format) { +PixelFormatEnumToXRenderPictFormat(SDL_Renderer * renderer, Uint32 format) +{ XRenderPictFormat* pict_fmt = NULL; X11_RenderData *data = (X11_RenderData *) renderer->driverdata; @@ -765,9 +771,9 @@ return pict_fmt; } - static Visual* -PixelFormatEnumToVisual(SDL_Renderer * renderer, Uint32 format) { +PixelFormatEnumToVisual(SDL_Renderer * renderer, Uint32 format) +{ X11_RenderData *data = (X11_RenderData *) renderer->driverdata; if (data->use_xrender) { @@ -798,7 +804,8 @@ } static XRenderColor -SDLColorToXRenderColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a) { +SDLColorToXRenderColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a) +{ double rd, gd, bd, ad; XRenderColor ret; rd = r / 255.0;