Fixed tab spacing
authorSam Lantinga <slouken@libsdl.org>
Tue, 23 Oct 2012 17:40:19 -0700
changeset 6603fc815cb0a2de
parent 6602 533131e24aeb
child 6604 70292a6d7dca
Fixed tab spacing
src/video/x11/SDL_x11messagebox.c
     1.1 --- a/src/video/x11/SDL_x11messagebox.c	Tue Oct 23 17:11:22 2012 -0700
     1.2 +++ b/src/video/x11/SDL_x11messagebox.c	Tue Oct 23 17:40:19 2012 -0700
     1.3 @@ -36,11 +36,11 @@
     1.4  
     1.5  static const SDL_MessageBoxColor g_default_colors[ SDL_MESSAGEBOX_COLOR_MAX ] =
     1.6  {
     1.7 -	{ 56,  54,  53  }, // SDL_MESSAGEBOX_COLOR_BACKGROUND,       
     1.8 -	{ 209, 207, 205 }, // SDL_MESSAGEBOX_COLOR_TEXT,             
     1.9 -	{ 140, 135, 129 }, // SDL_MESSAGEBOX_COLOR_BUTTON_BORDER,    
    1.10 -	{ 105, 102, 99  }, // SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND,
    1.11 -	{ 205, 202, 53  }, // SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED,  
    1.12 +    { 56,  54,  53  }, // SDL_MESSAGEBOX_COLOR_BACKGROUND,       
    1.13 +    { 209, 207, 205 }, // SDL_MESSAGEBOX_COLOR_TEXT,             
    1.14 +    { 140, 135, 129 }, // SDL_MESSAGEBOX_COLOR_BUTTON_BORDER,    
    1.15 +    { 105, 102, 99  }, // SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND,
    1.16 +    { 205, 202, 53  }, // SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED,  
    1.17  };
    1.18  
    1.19  #define SDL_MAKE_RGB( _r, _g, _b )  ( ( ( Uint32 )( _r ) << 16 ) | \
    1.20 @@ -70,7 +70,7 @@
    1.21      Font hfont;
    1.22      Window window;
    1.23      Display *display;
    1.24 -	long event_mask;
    1.25 +    long event_mask;
    1.26      Atom wm_protocols;
    1.27      Atom wm_delete_message;
    1.28  
    1.29 @@ -91,7 +91,7 @@
    1.30      const SDL_MessageBoxButtonData *buttondata;
    1.31      SDL_MessageBoxButtonDataX11 buttonpos[ MAX_BUTTONS ];
    1.32  
    1.33 -	Uint32 color[ SDL_MESSAGEBOX_COLOR_MAX ];
    1.34 +    Uint32 color[ SDL_MESSAGEBOX_COLOR_MAX ];
    1.35  
    1.36      const SDL_MessageBoxData *messageboxdata;
    1.37  } SDL_MessageBoxDataX11;
    1.38 @@ -146,10 +146,10 @@
    1.39  static int
    1.40  X11_MessageBoxInit( SDL_MessageBoxDataX11 *data, const SDL_MessageBoxData * messageboxdata, int * pbuttonid )
    1.41  {
    1.42 -	int i;
    1.43 +    int i;
    1.44      int numbuttons = messageboxdata->numbuttons;
    1.45      const SDL_MessageBoxButtonData *buttondata = messageboxdata->buttons;
    1.46 -	const SDL_MessageBoxColor *colorhints;
    1.47 +    const SDL_MessageBoxColor *colorhints;
    1.48  
    1.49      if ( numbuttons > MAX_BUTTONS ) {
    1.50          SDL_SetError("Too many buttons (%d max allowed)", MAX_BUTTONS);
    1.51 @@ -175,16 +175,16 @@
    1.52          return -1;
    1.53      }
    1.54  
    1.55 -	if ( messageboxdata->colorScheme ) {
    1.56 -		colorhints = messageboxdata->colorScheme->colors;
    1.57 -	} else {
    1.58 -		colorhints = g_default_colors;
    1.59 -	}
    1.60 +    if ( messageboxdata->colorScheme ) {
    1.61 +        colorhints = messageboxdata->colorScheme->colors;
    1.62 +    } else {
    1.63 +        colorhints = g_default_colors;
    1.64 +    }
    1.65  
    1.66 -	/* Convert our SDL_MessageBoxColor r,g,b values to packed RGB format. */
    1.67 -	for ( i = 0; i < SDL_MESSAGEBOX_COLOR_MAX; i++ ) {
    1.68 -		data->color[ i ] = SDL_MAKE_RGB( colorhints[ i ].r, colorhints[ i ].g, colorhints[ i ].b );
    1.69 -	}
    1.70 +    /* Convert our SDL_MessageBoxColor r,g,b values to packed RGB format. */
    1.71 +    for ( i = 0; i < SDL_MESSAGEBOX_COLOR_MAX; i++ ) {
    1.72 +        data->color[ i ] = SDL_MAKE_RGB( colorhints[ i ].r, colorhints[ i ].g, colorhints[ i ].b );
    1.73 +    }
    1.74  
    1.75      return 0;
    1.76  }
    1.77 @@ -358,7 +358,7 @@
    1.78      data->event_mask = ExposureMask |
    1.79          ButtonPressMask | ButtonReleaseMask | KeyPressMask | KeyReleaseMask |
    1.80          StructureNotifyMask | FocusChangeMask | PointerMotionMask;
    1.81 -	wnd_attr.event_mask = data->event_mask;
    1.82 +    wnd_attr.event_mask = data->event_mask;
    1.83  
    1.84      data->window = XCreateWindow(
    1.85                              display, DefaultRootWindow( display ),
    1.86 @@ -458,7 +458,7 @@
    1.87  
    1.88          XSetForeground( display, ctx, ( data->mouse_over_index == i ) ?
    1.89                          data->color[ SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED ] :
    1.90 -						data->color[ SDL_MESSAGEBOX_COLOR_TEXT ] );
    1.91 +                        data->color[ SDL_MESSAGEBOX_COLOR_TEXT ] );
    1.92          XDrawString( display, window, ctx,
    1.93              buttondatax11->x + offset, buttondatax11->y + offset,
    1.94              buttondata->text, buttondatax11->length );
    1.95 @@ -492,7 +492,7 @@
    1.96          XEvent e;
    1.97          SDL_bool draw = SDL_TRUE;
    1.98  
    1.99 -		XWindowEvent( data->display, data->window, data->event_mask, &e );
   1.100 +        XWindowEvent( data->display, data->window, data->event_mask, &e );
   1.101  
   1.102          /* If XFilterEvent returns True, then some input method has filtered the
   1.103             event, and the client should discard the event. */