Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Moved brace to the beginning of the line for the beginning of functions
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 28, 2010
1 parent 7488d9b commit 970ed3a
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions src/video/x11/SDL_x11render.c
Expand Up @@ -184,7 +184,8 @@ UpdateYUVTextureData(SDL_Texture * texture)

#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;
Expand All @@ -209,7 +210,8 @@ CheckXRender(Display *display, int *major, int *minor) {

#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;
Expand All @@ -234,7 +236,8 @@ CheckXFixes(Display *display, int *major, int *minor) {

#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;
Expand All @@ -259,7 +262,8 @@ CheckXDamage(Display *display, int *major, int *minor) {

#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;
Expand Down Expand Up @@ -716,7 +720,8 @@ X11_DisplayModeChanged(SDL_Renderer * renderer)

#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;
Expand All @@ -735,7 +740,8 @@ SDLMaskToXRenderMask(Uint32 sdl_mask, short *comp, short *compMask) {
}

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;

Expand Down Expand Up @@ -765,9 +771,9 @@ PixelFormatEnumToXRenderPictFormat(SDL_Renderer * renderer, Uint32 format) {
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) {
Expand Down Expand Up @@ -798,7 +804,8 @@ PixelFormatEnumToVisual(SDL_Renderer * renderer, Uint32 format) {
}

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;
Expand Down

0 comments on commit 970ed3a

Please sign in to comment.