Replaced tabs with spaces in test programs.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 25 Nov 2015 21:39:28 +0100
changeset 9922b066d5fd5fa7
parent 9921 8865d17947de
child 9923 934692406c03
Replaced tabs with spaces in test programs.
test/checkkeys.c
test/controllermap.c
test/loopwave.c
test/loopwavequeue.c
test/testatomic.c
test/testaudiohotplug.c
test/testdisplayinfo.c
test/testdraw2.c
test/testdrawchessboard.c
test/testdropfile.c
test/testfile.c
test/testgamecontroller.c
test/testgl2.c
test/testgles2.c
test/testhotplug.c
test/testjoystick.c
test/testlock.c
test/testmessage.c
test/testmultiaudio.c
test/testnative.c
test/testrendercopyex.c
test/testresample.c
test/testrumble.c
test/testsem.c
test/testshader.c
test/testshape.c
test/testsprite2.c
test/testspriteminimal.c
test/teststreaming.c
test/testthread.c
test/testtimer.c
test/testver.c
test/testwm2.c
test/torturethread.c
     1.1 --- a/test/checkkeys.c	Wed Nov 25 21:31:02 2015 +0100
     1.2 +++ b/test/checkkeys.c	Wed Nov 25 21:39:28 2015 +0100
     1.3 @@ -159,7 +159,7 @@
     1.4          switch (event.type) {
     1.5          case SDL_KEYDOWN:
     1.6          case SDL_KEYUP:
     1.7 -		    PrintKey(&event.key.keysym, (event.key.state == SDL_PRESSED) ? SDL_TRUE : SDL_FALSE, (event.key.repeat) ? SDL_TRUE : SDL_FALSE);
     1.8 +            PrintKey(&event.key.keysym, (event.key.state == SDL_PRESSED) ? SDL_TRUE : SDL_FALSE, (event.key.repeat) ? SDL_TRUE : SDL_FALSE);
     1.9              break;
    1.10          case SDL_TEXTEDITING:
    1.11              PrintText("EDIT", event.text.text);
    1.12 @@ -187,13 +187,13 @@
    1.13  main(int argc, char *argv[])
    1.14  {
    1.15      SDL_Window *window;
    1.16 -	
    1.17 -	/* Enable standard application logging */
    1.18 -	SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    1.19 +
    1.20 +    /* Enable standard application logging */
    1.21 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    1.22  
    1.23      /* Initialize SDL */
    1.24      if (SDL_Init(SDL_INIT_VIDEO) < 0) {
    1.25 -		SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
    1.26 +        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
    1.27          return (1);
    1.28      }
    1.29  
     2.1 --- a/test/controllermap.c	Wed Nov 25 21:31:02 2015 +0100
     2.2 +++ b/test/controllermap.c	Wed Nov 25 21:39:28 2015 +0100
     2.3 @@ -344,7 +344,7 @@
     2.4      SDL_Joystick *joystick;
     2.5  
     2.6      /* Enable standard application logging */
     2.7 -    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);	
     2.8 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
     2.9  
    2.10      /* Initialize SDL (Note: video is required to start event loop) */
    2.11      if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) {
     3.1 --- a/test/loopwave.c	Wed Nov 25 21:31:02 2015 +0100
     3.2 +++ b/test/loopwave.c	Wed Nov 25 21:39:28 2015 +0100
     3.3 @@ -93,8 +93,8 @@
     3.4      int i;
     3.5      char filename[4096];
     3.6  
     3.7 -	/* Enable standard application logging */
     3.8 -	SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
     3.9 +    /* Enable standard application logging */
    3.10 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    3.11  
    3.12      /* Load the SDL library */
    3.13      if (SDL_Init(SDL_INIT_AUDIO) < 0) {
    3.14 @@ -129,7 +129,7 @@
    3.15      /* Show the list of available drivers */
    3.16      SDL_Log("Available audio drivers:");
    3.17      for (i = 0; i < SDL_GetNumAudioDrivers(); ++i) {
    3.18 -		SDL_Log("%i: %s", i, SDL_GetAudioDriver(i));
    3.19 +        SDL_Log("%i: %s", i, SDL_GetAudioDriver(i));
    3.20      }
    3.21  
    3.22      /* Initialize fillerup() variables */
     4.1 --- a/test/loopwavequeue.c	Wed Nov 25 21:31:02 2015 +0100
     4.2 +++ b/test/loopwavequeue.c	Wed Nov 25 21:39:28 2015 +0100
     4.3 @@ -77,8 +77,8 @@
     4.4  {
     4.5      char filename[4096];
     4.6  
     4.7 -	/* Enable standard application logging */
     4.8 -	SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
     4.9 +    /* Enable standard application logging */
    4.10 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    4.11  
    4.12      /* Load the SDL library */
    4.13      if (SDL_Init(SDL_INIT_AUDIO) < 0) {
     5.1 --- a/test/testatomic.c	Wed Nov 25 21:31:02 2015 +0100
     5.2 +++ b/test/testatomic.c	Wed Nov 25 21:39:28 2015 +0100
     5.3 @@ -596,8 +596,8 @@
     5.4      Uint32 start, end;
     5.5      int i, j;
     5.6      int grand_total;
     5.7 -	char textBuffer[1024];
     5.8 -	int len;
     5.9 +    char textBuffer[1024];
    5.10 +    int len;
    5.11  
    5.12      SDL_Log("\nFIFO test---------------------------------------\n\n");
    5.13      SDL_Log("Mode: %s\n", lock_free ? "LockFree" : "Mutex");
    5.14 @@ -686,10 +686,10 @@
    5.15          }
    5.16          grand_total += total;
    5.17          SDL_Log("Reader %d read %d events, had %d waits\n", i, total, readerData[i].waits);
    5.18 -		SDL_snprintf(textBuffer, sizeof(textBuffer), "  { ");
    5.19 +        SDL_snprintf(textBuffer, sizeof(textBuffer), "  { ");
    5.20          for (j = 0; j < NUM_WRITERS; ++j) {
    5.21              if (j > 0) {
    5.22 -				len = SDL_strlen(textBuffer);
    5.23 +                len = SDL_strlen(textBuffer);
    5.24                  SDL_snprintf(textBuffer + len, sizeof(textBuffer) - len, ", ");
    5.25              }
    5.26              len = SDL_strlen(textBuffer);
    5.27 @@ -697,7 +697,7 @@
    5.28          }
    5.29          len = SDL_strlen(textBuffer);
    5.30          SDL_snprintf(textBuffer + len, sizeof(textBuffer) - len, " }\n");
    5.31 -		SDL_Log("%s", textBuffer);
    5.32 +        SDL_Log("%s", textBuffer);
    5.33      }
    5.34      SDL_Log("Readers read %d total events\n", grand_total);
    5.35  }
    5.36 @@ -708,8 +708,8 @@
    5.37  int
    5.38  main(int argc, char *argv[])
    5.39  {
    5.40 -	/* Enable standard application logging */
    5.41 -	SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    5.42 +    /* Enable standard application logging */
    5.43 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    5.44  
    5.45      RunBasicTest();
    5.46      RunEpicTest();
     6.1 --- a/test/testaudiohotplug.c	Wed Nov 25 21:31:02 2015 +0100
     6.2 +++ b/test/testaudiohotplug.c	Wed Nov 25 21:39:28 2015 +0100
     6.3 @@ -122,8 +122,8 @@
     6.4      int i;
     6.5      char filename[4096];
     6.6  
     6.7 -	/* Enable standard application logging */
     6.8 -	SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
     6.9 +    /* Enable standard application logging */
    6.10 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    6.11  
    6.12      /* Load the SDL library */
    6.13      if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0) {
    6.14 @@ -160,7 +160,7 @@
    6.15      /* Show the list of available drivers */
    6.16      SDL_Log("Available audio drivers:");
    6.17      for (i = 0; i < SDL_GetNumAudioDrivers(); ++i) {
    6.18 -		SDL_Log("%i: %s", i, SDL_GetAudioDriver(i));
    6.19 +        SDL_Log("%i: %s", i, SDL_GetAudioDriver(i));
    6.20      }
    6.21  
    6.22      SDL_Log("Using audio driver: %s\n", SDL_GetCurrentAudioDriver());
     7.1 --- a/test/testdisplayinfo.c	Wed Nov 25 21:31:02 2015 +0100
     7.2 +++ b/test/testdisplayinfo.c	Wed Nov 25 21:39:28 2015 +0100
     7.3 @@ -34,8 +34,8 @@
     7.4      SDL_DisplayMode mode;
     7.5      int num_displays, dpy;
     7.6  
     7.7 -	/* Enable standard application logging */
     7.8 -	SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
     7.9 +    /* Enable standard application logging */
    7.10 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    7.11  
    7.12      /* Load the SDL library */
    7.13      if (SDL_Init(SDL_INIT_VIDEO) < 0) {
     8.1 --- a/test/testdraw2.c	Wed Nov 25 21:31:02 2015 +0100
     8.2 +++ b/test/testdraw2.c	Wed Nov 25 21:39:28 2015 +0100
     8.3 @@ -211,8 +211,8 @@
     8.4      int i;
     8.5      Uint32 then, now, frames;
     8.6  
     8.7 -	/* Enable standard application logging */
     8.8 -	SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
     8.9 +    /* Enable standard application logging */
    8.10 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    8.11  
    8.12      /* Initialize parameters */
    8.13      num_objects = NUM_OBJECTS;
     9.1 --- a/test/testdrawchessboard.c	Wed Nov 25 21:31:02 2015 +0100
     9.2 +++ b/test/testdrawchessboard.c	Wed Nov 25 21:39:28 2015 +0100
     9.3 @@ -30,28 +30,28 @@
     9.4  void
     9.5  DrawChessBoard(SDL_Renderer * renderer)
     9.6  {
     9.7 -	int row = 0,column = 0,x = 0;
     9.8 -	SDL_Rect rect, darea;
     9.9 +    int row = 0,column = 0,x = 0;
    9.10 +    SDL_Rect rect, darea;
    9.11  
    9.12 -	/* Get the Size of drawing surface */
    9.13 -	SDL_RenderGetViewport(renderer, &darea);
    9.14 +    /* Get the Size of drawing surface */
    9.15 +    SDL_RenderGetViewport(renderer, &darea);
    9.16  
    9.17 -	for( ; row < 8; row++)
    9.18 -	{
    9.19 -		column = row%2;
    9.20 -		x = column;
    9.21 -		for( ; column < 4+(row%2); column++)
    9.22 -		{
    9.23 -			SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);
    9.24 +    for( ; row < 8; row++)
    9.25 +    {
    9.26 +        column = row%2;
    9.27 +        x = column;
    9.28 +        for( ; column < 4+(row%2); column++)
    9.29 +        {
    9.30 +            SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);
    9.31  
    9.32 -			rect.w = darea.w/8;
    9.33 -			rect.h = darea.h/8;
    9.34 -			rect.x = x * rect.w;
    9.35 -			rect.y = row * rect.h;
    9.36 -			x = x + 2;
    9.37 -			SDL_RenderFillRect(renderer, &rect);
    9.38 -		}
    9.39 -	}
    9.40 +            rect.w = darea.w/8;
    9.41 +            rect.h = darea.h/8;
    9.42 +            rect.x = x * rect.w;
    9.43 +            rect.y = row * rect.h;
    9.44 +            x = x + 2;
    9.45 +            SDL_RenderFillRect(renderer, &rect);
    9.46 +        }
    9.47 +    }
    9.48  }
    9.49  
    9.50  void
    9.51 @@ -59,77 +59,77 @@
    9.52  {
    9.53      SDL_Event e;
    9.54      while (SDL_PollEvent(&e)) {
    9.55 -		if (e.type == SDL_QUIT) {
    9.56 -			done = 1;
    9.57 +        if (e.type == SDL_QUIT) {
    9.58 +            done = 1;
    9.59  #ifdef __EMSCRIPTEN__
    9.60 -			emscripten_cancel_main_loop();
    9.61 +            emscripten_cancel_main_loop();
    9.62  #endif
    9.63 -			return;
    9.64 -		}
    9.65 +            return;
    9.66 +        }
    9.67  
    9.68 -		if ((e.type == SDL_KEYDOWN) && (e.key.keysym.sym == SDLK_ESCAPE)) {
    9.69 -			done = 1;
    9.70 +        if ((e.type == SDL_KEYDOWN) && (e.key.keysym.sym == SDLK_ESCAPE)) {
    9.71 +            done = 1;
    9.72  #ifdef __EMSCRIPTEN__
    9.73 -			emscripten_cancel_main_loop();
    9.74 +            emscripten_cancel_main_loop();
    9.75  #endif
    9.76 -			return;
    9.77 -		}
    9.78 -	}
    9.79 -	
    9.80 -	DrawChessBoard(renderer);
    9.81 -	
    9.82 -	/* Got everything on rendering surface,
    9.83 -	   now Update the drawing image on window screen */
    9.84 -	SDL_UpdateWindowSurface(window);
    9.85 +            return;
    9.86 +        }
    9.87 +    }
    9.88 +
    9.89 +    DrawChessBoard(renderer);
    9.90 +
    9.91 +    /* Got everything on rendering surface,
    9.92 +       now Update the drawing image on window screen */
    9.93 +    SDL_UpdateWindowSurface(window);
    9.94  }
    9.95  
    9.96  int
    9.97  main(int argc, char *argv[])
    9.98  {
    9.99 -	SDL_Surface *surface;
   9.100 +    SDL_Surface *surface;
   9.101  
   9.102      /* Enable standard application logging */
   9.103      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   9.104  
   9.105 -	/* Initialize SDL */
   9.106 -	if(SDL_Init(SDL_INIT_VIDEO) != 0)
   9.107 -	{
   9.108 -		SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Init fail : %s\n", SDL_GetError());
   9.109 -		return 1;
   9.110 -	}
   9.111 +    /* Initialize SDL */
   9.112 +    if(SDL_Init(SDL_INIT_VIDEO) != 0)
   9.113 +    {
   9.114 +        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Init fail : %s\n", SDL_GetError());
   9.115 +        return 1;
   9.116 +    }
   9.117  
   9.118  
   9.119 -	/* Create window and renderer for given surface */
   9.120 -	window = SDL_CreateWindow("Chess Board", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN);
   9.121 -	if(!window)
   9.122 -	{
   9.123 -		SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Window creation fail : %s\n",SDL_GetError());
   9.124 -		return 1;
   9.125 -	}	
   9.126 -	surface = SDL_GetWindowSurface(window);
   9.127 -	renderer = SDL_CreateSoftwareRenderer(surface);
   9.128 -	if(!renderer)
   9.129 -	{
   9.130 -		SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Render creation for surface fail : %s\n",SDL_GetError());
   9.131 -		return 1;
   9.132 -	}
   9.133 +    /* Create window and renderer for given surface */
   9.134 +    window = SDL_CreateWindow("Chess Board", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN);
   9.135 +    if(!window)
   9.136 +    {
   9.137 +        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Window creation fail : %s\n",SDL_GetError());
   9.138 +        return 1;
   9.139 +    }
   9.140 +    surface = SDL_GetWindowSurface(window);
   9.141 +    renderer = SDL_CreateSoftwareRenderer(surface);
   9.142 +    if(!renderer)
   9.143 +    {
   9.144 +        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Render creation for surface fail : %s\n",SDL_GetError());
   9.145 +        return 1;
   9.146 +    }
   9.147  
   9.148 -	/* Clear the rendering surface with the specified color */
   9.149 -	SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF);
   9.150 -	SDL_RenderClear(renderer);
   9.151 +    /* Clear the rendering surface with the specified color */
   9.152 +    SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF);
   9.153 +    SDL_RenderClear(renderer);
   9.154  
   9.155  
   9.156 -	/* Draw the Image on rendering surface */
   9.157 -	done = 0;
   9.158 +    /* Draw the Image on rendering surface */
   9.159 +    done = 0;
   9.160  #ifdef __EMSCRIPTEN__
   9.161      emscripten_set_main_loop(loop, 0, 1);
   9.162  #else
   9.163      while (!done) {
   9.164          loop();
   9.165 -	}
   9.166 +    }
   9.167  #endif
   9.168  
   9.169      SDL_Quit();
   9.170 -	return 0;
   9.171 +    return 0;
   9.172  }
   9.173  
    10.1 --- a/test/testdropfile.c	Wed Nov 25 21:31:02 2015 +0100
    10.2 +++ b/test/testdropfile.c	Wed Nov 25 21:39:28 2015 +0100
    10.3 @@ -31,7 +31,7 @@
    10.4      int i, done;
    10.5      SDL_Event event;
    10.6  
    10.7 -	/* Enable standard application logging */
    10.8 +    /* Enable standard application logging */
    10.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   10.10  
   10.11      /* Initialize test framework */
    11.1 --- a/test/testfile.c	Wed Nov 25 21:31:02 2015 +0100
    11.2 +++ b/test/testfile.c	Wed Nov 25 21:39:28 2015 +0100
    11.3 @@ -69,7 +69,7 @@
    11.4      char test_buf[30];
    11.5  
    11.6      /* Enable standard application logging */
    11.7 -	SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    11.8 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    11.9  
   11.10      cleanup();
   11.11  
    12.1 --- a/test/testgamecontroller.c	Wed Nov 25 21:31:02 2015 +0100
    12.2 +++ b/test/testgamecontroller.c	Wed Nov 25 21:39:28 2015 +0100
    12.3 @@ -247,7 +247,7 @@
    12.4      SDL_GameController *gamecontroller;
    12.5  
    12.6      /* Enable standard application logging */
    12.7 -	SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    12.8 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    12.9  
   12.10      /* Initialize SDL (Note: video is required to start event loop) */
   12.11      if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER ) < 0) {
   12.12 @@ -284,7 +284,7 @@
   12.13          SDL_Event event;
   12.14          int device = atoi(argv[1]);
   12.15          if (device >= SDL_NumJoysticks()) {
   12.16 -			SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "%i is an invalid joystick index.\n", device);
   12.17 +            SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "%i is an invalid joystick index.\n", device);
   12.18              retcode = 1;
   12.19          } else {
   12.20              SDL_JoystickGetGUIDString(SDL_JoystickGetDeviceGUID(device),
    13.1 --- a/test/testgl2.c	Wed Nov 25 21:31:02 2015 +0100
    13.2 +++ b/test/testgl2.c	Wed Nov 25 21:39:28 2015 +0100
    13.3 @@ -357,7 +357,7 @@
    13.4              SDL_Log("SDL_GL_ACCELERATED_VISUAL: requested %d, got %d\n", accel,
    13.5                     value);
    13.6          } else {
    13.7 -			SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_ACCELERATED_VISUAL: %s\n",
    13.8 +            SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_ACCELERATED_VISUAL: %s\n",
    13.9                     SDL_GetError());
   13.10          }
   13.11      }
    14.1 --- a/test/testgles2.c	Wed Nov 25 21:31:02 2015 +0100
    14.2 +++ b/test/testgles2.c	Wed Nov 25 21:39:28 2015 +0100
    14.3 @@ -169,7 +169,7 @@
    14.4  static void
    14.5  multiply_matrix(float *lhs, float *rhs, float *r)
    14.6  {
    14.7 -	int i, j, k;
    14.8 +    int i, j, k;
    14.9      float tmp[16];
   14.10  
   14.11      for (i = 0; i < 4; i++) {
    15.1 --- a/test/testhotplug.c	Wed Nov 25 21:31:02 2015 +0100
    15.2 +++ b/test/testhotplug.c	Wed Nov 25 21:39:28 2015 +0100
    15.3 @@ -42,7 +42,7 @@
    15.4      }
    15.5      
    15.6      /* Enable standard application logging */
    15.7 -    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);	
    15.8 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    15.9  
   15.10      SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
   15.11  
   15.12 @@ -134,10 +134,10 @@
   15.13                      {
   15.14                          SDL_HapticRumblePlay(haptic, 0.25, 250);
   15.15                      }
   15.16 -					if (event.jbutton.button == 0) {
   15.17 -						SDL_Log("Exiting due to button press of button 0\n");
   15.18 -						keepGoing = SDL_FALSE;
   15.19 -					}
   15.20 +                    if (event.jbutton.button == 0) {
   15.21 +                        SDL_Log("Exiting due to button press of button 0\n");
   15.22 +                        keepGoing = SDL_FALSE;
   15.23 +                    }
   15.24                      break;
   15.25                  case SDL_JOYBUTTONUP:
   15.26                      SDL_Log("Button Release: %d\n", event.jbutton.button);
    16.1 --- a/test/testjoystick.c	Wed Nov 25 21:31:02 2015 +0100
    16.2 +++ b/test/testjoystick.c	Wed Nov 25 21:39:28 2015 +0100
    16.3 @@ -246,7 +246,7 @@
    16.4      SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
    16.5  
    16.6      /* Enable standard application logging */
    16.7 -    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);	
    16.8 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    16.9  
   16.10      /* Initialize SDL (Note: video is required to start event loop) */
   16.11      if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) {
    17.1 --- a/test/testlock.c	Wed Nov 25 21:31:02 2015 +0100
    17.2 +++ b/test/testlock.c	Wed Nov 25 21:39:28 2015 +0100
    17.3 @@ -95,7 +95,7 @@
    17.4      int i;
    17.5      int maxproc = 6;
    17.6  
    17.7 -	/* Enable standard application logging */
    17.8 +    /* Enable standard application logging */
    17.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   17.10  
   17.11      /* Load the SDL library */
    18.1 --- a/test/testmessage.c	Wed Nov 25 21:31:02 2015 +0100
    18.2 +++ b/test/testmessage.c	Wed Nov 25 21:39:28 2015 +0100
    18.3 @@ -85,7 +85,7 @@
    18.4  {
    18.5      int success;
    18.6  
    18.7 -	/* Enable standard application logging */
    18.8 +    /* Enable standard application logging */
    18.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   18.10  
   18.11      success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
    19.1 --- a/test/testmultiaudio.c	Wed Nov 25 21:31:02 2015 +0100
    19.2 +++ b/test/testmultiaudio.c	Wed Nov 25 21:39:28 2015 +0100
    19.3 @@ -166,7 +166,7 @@
    19.4  {
    19.5      int devcount = 0;
    19.6  
    19.7 -	/* Enable standard application logging */
    19.8 +    /* Enable standard application logging */
    19.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   19.10  
   19.11      /* Load the SDL library */
    20.1 --- a/test/testnative.c	Wed Nov 25 21:31:02 2015 +0100
    20.2 +++ b/test/testnative.c	Wed Nov 25 21:39:28 2015 +0100
    20.3 @@ -131,7 +131,7 @@
    20.4      int sprite_w, sprite_h;
    20.5      SDL_Event event;
    20.6  
    20.7 -	/* Enable standard application logging */
    20.8 +    /* Enable standard application logging */
    20.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   20.10  
   20.11      if (SDL_VideoInit(NULL) < 0) {
    21.1 --- a/test/testrendercopyex.c	Wed Nov 25 21:31:02 2015 +0100
    21.2 +++ b/test/testrendercopyex.c	Wed Nov 25 21:39:28 2015 +0100
    21.3 @@ -166,7 +166,7 @@
    21.4      int frames;
    21.5      Uint32 then, now;
    21.6  
    21.7 -	/* Enable standard application logging */
    21.8 +    /* Enable standard application logging */
    21.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   21.10  
   21.11      /* Initialize test framework */
    22.1 --- a/test/testresample.c	Wed Nov 25 21:31:02 2015 +0100
    22.2 +++ b/test/testresample.c	Wed Nov 25 21:39:28 2015 +0100
    22.3 @@ -25,7 +25,7 @@
    22.4      int avgbytes = 0;
    22.5      SDL_RWops *io = NULL;
    22.6  
    22.7 -	/* Enable standard application logging */
    22.8 +    /* Enable standard application logging */
    22.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   22.10  
   22.11      if (argc != 4) {
    23.1 --- a/test/testrumble.c	Wed Nov 25 21:31:02 2015 +0100
    23.2 +++ b/test/testrumble.c	Wed Nov 25 21:39:28 2015 +0100
    23.3 @@ -48,7 +48,7 @@
    23.4      char *name;
    23.5      int index;
    23.6  
    23.7 -	/* Enable standard application logging */
    23.8 +    /* Enable standard application logging */
    23.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   23.10  
   23.11      name = NULL;
    24.1 --- a/test/testsem.c	Wed Nov 25 21:31:02 2015 +0100
    24.2 +++ b/test/testsem.c	Wed Nov 25 21:39:28 2015 +0100
    24.3 @@ -82,7 +82,7 @@
    24.4      uintptr_t i;
    24.5      int init_sem;
    24.6  
    24.7 -	/* Enable standard application logging */
    24.8 +    /* Enable standard application logging */
    24.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   24.10  
   24.11      if (argc < 2) {
    25.1 --- a/test/testshader.c	Wed Nov 25 21:31:02 2015 +0100
    25.2 +++ b/test/testshader.c	Wed Nov 25 21:39:28 2015 +0100
    25.3 @@ -421,7 +421,7 @@
    25.4      GLuint texture;
    25.5      GLfloat texcoords[4];
    25.6  
    25.7 -	/* Enable standard application logging */
    25.8 +    /* Enable standard application logging */
    25.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   25.10  
   25.11      /* Initialize SDL for video output */
    26.1 --- a/test/testshape.c	Wed Nov 25 21:31:02 2015 +0100
    26.2 +++ b/test/testshape.c	Wed Nov 25 21:39:28 2015 +0100
    26.3 @@ -60,7 +60,7 @@
    26.4      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    26.5  
    26.6      if(argc < 2) {
    26.7 -		SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Shape requires at least one bitmap file as argument.");
    26.8 +        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Shape requires at least one bitmap file as argument.");
    26.9          exit(-1);
   26.10      }
   26.11  
    27.1 --- a/test/testsprite2.c	Wed Nov 25 21:31:02 2015 +0100
    27.2 +++ b/test/testsprite2.c	Wed Nov 25 21:39:28 2015 +0100
    27.3 @@ -203,13 +203,13 @@
    27.4              velocity = &velocities[i];
    27.5              position->x += velocity->x;
    27.6              if ((position->x < 0) || (position->x >= (viewport.w - sprite_w))) {
    27.7 -            	velocity->x = -velocity->x;
    27.8 -            	position->x += velocity->x;
    27.9 +                velocity->x = -velocity->x;
   27.10 +                position->x += velocity->x;
   27.11              }
   27.12              position->y += velocity->y;
   27.13              if ((position->y < 0) || (position->y >= (viewport.h - sprite_h))) {
   27.14 -            	velocity->y = -velocity->y;
   27.15 -            	position->y += velocity->y;
   27.16 +                velocity->y = -velocity->y;
   27.17 +                position->y += velocity->y;
   27.18              }
   27.19  
   27.20          }
   27.21 @@ -227,7 +227,7 @@
   27.22      /* Draw sprites */
   27.23      for (i = 0; i < num_sprites; ++i) {
   27.24          position = &positions[i];
   27.25 -		
   27.26 +
   27.27          /* Blit the sprite onto the screen */
   27.28          SDL_RenderCopy(renderer, sprite, NULL, position);
   27.29      }
   27.30 @@ -263,7 +263,7 @@
   27.31  {
   27.32      int i;
   27.33      Uint32 then, now, frames;
   27.34 -	Uint64 seed;
   27.35 +    Uint64 seed;
   27.36      const char *icon = "icon.bmp";
   27.37  
   27.38      /* Initialize parameters */
    28.1 --- a/test/testspriteminimal.c	Wed Nov 25 21:31:02 2015 +0100
    28.2 +++ b/test/testspriteminimal.c	Wed Nov 25 21:39:28 2015 +0100
    28.3 @@ -150,7 +150,7 @@
    28.4      int i;
    28.5  
    28.6  
    28.7 -	/* Enable standard application logging */
    28.8 +    /* Enable standard application logging */
    28.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   28.10  
   28.11      if (SDL_CreateWindowAndRenderer(WINDOW_WIDTH, WINDOW_HEIGHT, 0, &window, &renderer) < 0) {
    29.1 --- a/test/teststreaming.c	Wed Nov 25 21:31:02 2015 +0100
    29.2 +++ b/test/teststreaming.c	Wed Nov 25 21:39:28 2015 +0100
    29.3 @@ -129,7 +129,7 @@
    29.4      SDL_Window *window;
    29.5      SDL_RWops *handle;
    29.6  
    29.7 -	/* Enable standard application logging */
    29.8 +    /* Enable standard application logging */
    29.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   29.10  
   29.11      if (SDL_Init(SDL_INIT_VIDEO) < 0) {
    30.1 --- a/test/testthread.c	Wed Nov 25 21:31:02 2015 +0100
    30.2 +++ b/test/testthread.c	Wed Nov 25 21:39:28 2015 +0100
    30.3 @@ -57,7 +57,7 @@
    30.4  {
    30.5      SDL_Thread *thread;
    30.6  
    30.7 -	/* Enable standard application logging */
    30.8 +    /* Enable standard application logging */
    30.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   30.10  
   30.11      /* Load the SDL library */
    31.1 --- a/test/testtimer.c	Wed Nov 25 21:31:02 2015 +0100
    31.2 +++ b/test/testtimer.c	Wed Nov 25 21:39:28 2015 +0100
    31.3 @@ -45,7 +45,7 @@
    31.4      Uint32 start32, now32;
    31.5      Uint64 start, now;
    31.6  
    31.7 -	/* Enable standard application logging */
    31.8 +    /* Enable standard application logging */
    31.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   31.10  
   31.11      if (SDL_Init(SDL_INIT_TIMER) < 0) {
    32.1 --- a/test/testver.c	Wed Nov 25 21:31:02 2015 +0100
    32.2 +++ b/test/testver.c	Wed Nov 25 21:39:28 2015 +0100
    32.3 @@ -26,7 +26,7 @@
    32.4      SDL_version compiled;
    32.5      SDL_version linked;
    32.6  
    32.7 -	/* Enable standard application logging */
    32.8 +    /* Enable standard application logging */
    32.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   32.10  
   32.11  #if SDL_VERSION_ATLEAST(2, 0, 0)
    33.1 --- a/test/testwm2.c	Wed Nov 25 21:31:02 2015 +0100
    33.2 +++ b/test/testwm2.c	Wed Nov 25 21:39:28 2015 +0100
    33.3 @@ -112,7 +112,7 @@
    33.4  {
    33.5      int i;
    33.6  
    33.7 -	/* Enable standard application logging */
    33.8 +    /* Enable standard application logging */
    33.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   33.10  
   33.11      SDL_assert(SDL_arraysize(cursorNames) == SDL_NUM_SYSTEM_CURSORS);
    34.1 --- a/test/torturethread.c	Wed Nov 25 21:31:02 2015 +0100
    34.2 +++ b/test/torturethread.c	Wed Nov 25 21:39:28 2015 +0100
    34.3 @@ -79,7 +79,7 @@
    34.4      SDL_Thread *threads[NUMTHREADS];
    34.5      int i;
    34.6  
    34.7 -	/* Enable standard application logging */
    34.8 +    /* Enable standard application logging */
    34.9      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
   34.10  
   34.11      /* Load the SDL library */