Moved brace to the beginning of the line for the beginning of functions
authorSam Lantinga <slouken@libsdl.org>
Wed, 28 Jul 2010 01:05:58 -0700
changeset 4619b9a205e6369f
parent 4618 844b5ef4b149
child 4620 f4a93bde905f
Moved brace to the beginning of the line for the beginning of functions
src/video/x11/SDL_x11render.c
     1.1 --- a/src/video/x11/SDL_x11render.c	Wed Jul 28 00:54:23 2010 -0700
     1.2 +++ b/src/video/x11/SDL_x11render.c	Wed Jul 28 01:05:58 2010 -0700
     1.3 @@ -184,7 +184,8 @@
     1.4  
     1.5  #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
     1.6  static SDL_bool
     1.7 -CheckXRender(Display *display, int *major, int *minor) {
     1.8 +CheckXRender(Display *display, int *major, int *minor)
     1.9 +{
    1.10      const char *env;
    1.11  
    1.12      *major = *minor = 0;
    1.13 @@ -209,7 +210,8 @@
    1.14  
    1.15  #ifdef SDL_VIDEO_DRIVER_X11_XFIXES
    1.16  static SDL_bool
    1.17 -CheckXFixes(Display *display, int *major, int *minor) {
    1.18 +CheckXFixes(Display *display, int *major, int *minor)
    1.19 +{
    1.20      const char *env;
    1.21  
    1.22      *major = *minor = 0;
    1.23 @@ -234,7 +236,8 @@
    1.24  
    1.25  #ifdef SDL_VIDEO_DRIVER_X11_XDAMAGE
    1.26  static SDL_bool
    1.27 -CheckXDamage(Display *display, int *major, int *minor) {
    1.28 +CheckXDamage(Display *display, int *major, int *minor)
    1.29 +{
    1.30      const char *env;
    1.31  
    1.32      *major = *minor = 0;
    1.33 @@ -259,7 +262,8 @@
    1.34  
    1.35  #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
    1.36  static Uint32
    1.37 -XRenderPictFormatToSDLPixelFormatEnum(XRenderPictFormat *pict_format) {
    1.38 +XRenderPictFormatToSDLPixelFormatEnum(XRenderPictFormat *pict_format)
    1.39 +{
    1.40      if (pict_format->type != PictTypeDirect) {
    1.41          SDL_SetError("Indexed pict formats not supported ATM");
    1.42          return 0;
    1.43 @@ -716,7 +720,8 @@
    1.44  
    1.45  #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
    1.46  static void
    1.47 -SDLMaskToXRenderMask(Uint32 sdl_mask, short *comp, short *compMask) {
    1.48 +SDLMaskToXRenderMask(Uint32 sdl_mask, short *comp, short *compMask)
    1.49 +{
    1.50      if (sdl_mask == 0) {
    1.51          *comp = 0;
    1.52          *compMask = 0;
    1.53 @@ -735,7 +740,8 @@
    1.54  }
    1.55  
    1.56  static XRenderPictFormat*
    1.57 -PixelFormatEnumToXRenderPictFormat(SDL_Renderer * renderer, Uint32 format) {
    1.58 +PixelFormatEnumToXRenderPictFormat(SDL_Renderer * renderer, Uint32 format)
    1.59 +{
    1.60      XRenderPictFormat* pict_fmt = NULL;
    1.61      X11_RenderData *data = (X11_RenderData *) renderer->driverdata;
    1.62      
    1.63 @@ -765,9 +771,9 @@
    1.64      return pict_fmt;
    1.65  }
    1.66  
    1.67 -
    1.68  static Visual*
    1.69 -PixelFormatEnumToVisual(SDL_Renderer * renderer, Uint32 format) {
    1.70 +PixelFormatEnumToVisual(SDL_Renderer * renderer, Uint32 format)
    1.71 +{
    1.72      X11_RenderData *data = (X11_RenderData *) renderer->driverdata;
    1.73  
    1.74      if (data->use_xrender) {
    1.75 @@ -798,7 +804,8 @@
    1.76  }
    1.77  
    1.78  static XRenderColor
    1.79 -SDLColorToXRenderColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a) {
    1.80 +SDLColorToXRenderColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a)
    1.81 +{
    1.82      double rd, gd, bd, ad;
    1.83      XRenderColor ret;
    1.84      rd = r / 255.0;