Replaced tabs with spaces in test programs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744
diff --git a/test/checkkeys.c b/test/checkkeys.c
index f7a4e3c..0b51f38 100644
--- a/test/checkkeys.c
+++ b/test/checkkeys.c
@@ -159,7 +159,7 @@ loop()
switch (event.type) {
case SDL_KEYDOWN:
case SDL_KEYUP:
- PrintKey(&event.key.keysym, (event.key.state == SDL_PRESSED) ? SDL_TRUE : SDL_FALSE, (event.key.repeat) ? SDL_TRUE : SDL_FALSE);
+ PrintKey(&event.key.keysym, (event.key.state == SDL_PRESSED) ? SDL_TRUE : SDL_FALSE, (event.key.repeat) ? SDL_TRUE : SDL_FALSE);
break;
case SDL_TEXTEDITING:
PrintText("EDIT", event.text.text);
@@ -187,13 +187,13 @@ int
main(int argc, char *argv[])
{
SDL_Window *window;
-
- /* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+
+ /* Enable standard application logging */
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Initialize SDL */
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
- SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
+ SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
return (1);
}
diff --git a/test/controllermap.c b/test/controllermap.c
index eecf0cb..eca82c3 100644
--- a/test/controllermap.c
+++ b/test/controllermap.c
@@ -344,7 +344,7 @@ main(int argc, char *argv[])
SDL_Joystick *joystick;
/* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Initialize SDL (Note: video is required to start event loop) */
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) {
diff --git a/test/loopwave.c b/test/loopwave.c
index b3c268d..1e98f4b 100644
--- a/test/loopwave.c
+++ b/test/loopwave.c
@@ -93,8 +93,8 @@ main(int argc, char *argv[])
int i;
char filename[4096];
- /* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ /* Enable standard application logging */
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Load the SDL library */
if (SDL_Init(SDL_INIT_AUDIO) < 0) {
@@ -129,7 +129,7 @@ main(int argc, char *argv[])
/* Show the list of available drivers */
SDL_Log("Available audio drivers:");
for (i = 0; i < SDL_GetNumAudioDrivers(); ++i) {
- SDL_Log("%i: %s", i, SDL_GetAudioDriver(i));
+ SDL_Log("%i: %s", i, SDL_GetAudioDriver(i));
}
/* Initialize fillerup() variables */
diff --git a/test/loopwavequeue.c b/test/loopwavequeue.c
index e7fb8a2..2794c72 100644
--- a/test/loopwavequeue.c
+++ b/test/loopwavequeue.c
@@ -77,8 +77,8 @@ main(int argc, char *argv[])
{
char filename[4096];
- /* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ /* Enable standard application logging */
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Load the SDL library */
if (SDL_Init(SDL_INIT_AUDIO) < 0) {
diff --git a/test/testatomic.c b/test/testatomic.c
index 8b6b21a..430213b 100644
--- a/test/testatomic.c
+++ b/test/testatomic.c
@@ -596,8 +596,8 @@ static void RunFIFOTest(SDL_bool lock_free)
Uint32 start, end;
int i, j;
int grand_total;
- char textBuffer[1024];
- int len;
+ char textBuffer[1024];
+ int len;
SDL_Log("\nFIFO test---------------------------------------\n\n");
SDL_Log("Mode: %s\n", lock_free ? "LockFree" : "Mutex");
@@ -686,10 +686,10 @@ static void RunFIFOTest(SDL_bool lock_free)
}
grand_total += total;
SDL_Log("Reader %d read %d events, had %d waits\n", i, total, readerData[i].waits);
- SDL_snprintf(textBuffer, sizeof(textBuffer), " { ");
+ SDL_snprintf(textBuffer, sizeof(textBuffer), " { ");
for (j = 0; j < NUM_WRITERS; ++j) {
if (j > 0) {
- len = SDL_strlen(textBuffer);
+ len = SDL_strlen(textBuffer);
SDL_snprintf(textBuffer + len, sizeof(textBuffer) - len, ", ");
}
len = SDL_strlen(textBuffer);
@@ -697,7 +697,7 @@ static void RunFIFOTest(SDL_bool lock_free)
}
len = SDL_strlen(textBuffer);
SDL_snprintf(textBuffer + len, sizeof(textBuffer) - len, " }\n");
- SDL_Log("%s", textBuffer);
+ SDL_Log("%s", textBuffer);
}
SDL_Log("Readers read %d total events\n", grand_total);
}
@@ -708,8 +708,8 @@ static void RunFIFOTest(SDL_bool lock_free)
int
main(int argc, char *argv[])
{
- /* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ /* Enable standard application logging */
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
RunBasicTest();
RunEpicTest();
diff --git a/test/testaudiohotplug.c b/test/testaudiohotplug.c
index af0ecb5..f8c4685 100644
--- a/test/testaudiohotplug.c
+++ b/test/testaudiohotplug.c
@@ -122,8 +122,8 @@ main(int argc, char *argv[])
int i;
char filename[4096];
- /* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ /* Enable standard application logging */
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Load the SDL library */
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0) {
@@ -160,7 +160,7 @@ main(int argc, char *argv[])
/* Show the list of available drivers */
SDL_Log("Available audio drivers:");
for (i = 0; i < SDL_GetNumAudioDrivers(); ++i) {
- SDL_Log("%i: %s", i, SDL_GetAudioDriver(i));
+ SDL_Log("%i: %s", i, SDL_GetAudioDriver(i));
}
SDL_Log("Using audio driver: %s\n", SDL_GetCurrentAudioDriver());
diff --git a/test/testdisplayinfo.c b/test/testdisplayinfo.c
index d824446..bdc5596 100644
--- a/test/testdisplayinfo.c
+++ b/test/testdisplayinfo.c
@@ -34,8 +34,8 @@ main(int argc, char *argv[])
SDL_DisplayMode mode;
int num_displays, dpy;
- /* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ /* Enable standard application logging */
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Load the SDL library */
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
diff --git a/test/testdraw2.c b/test/testdraw2.c
index 78245f7..c391426 100644
--- a/test/testdraw2.c
+++ b/test/testdraw2.c
@@ -211,8 +211,8 @@ main(int argc, char *argv[])
int i;
Uint32 then, now, frames;
- /* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ /* Enable standard application logging */
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Initialize parameters */
num_objects = NUM_OBJECTS;
diff --git a/test/testdrawchessboard.c b/test/testdrawchessboard.c
index 3306381..b34fc71 100644
--- a/test/testdrawchessboard.c
+++ b/test/testdrawchessboard.c
@@ -30,28 +30,28 @@ int done;
void
DrawChessBoard(SDL_Renderer * renderer)
{
- int row = 0,column = 0,x = 0;
- SDL_Rect rect, darea;
-
- /* Get the Size of drawing surface */
- SDL_RenderGetViewport(renderer, &darea);
-
- for( ; row < 8; row++)
- {
- column = row%2;
- x = column;
- for( ; column < 4+(row%2); column++)
- {
- SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);
-
- rect.w = darea.w/8;
- rect.h = darea.h/8;
- rect.x = x * rect.w;
- rect.y = row * rect.h;
- x = x + 2;
- SDL_RenderFillRect(renderer, &rect);
- }
- }
+ int row = 0,column = 0,x = 0;
+ SDL_Rect rect, darea;
+
+ /* Get the Size of drawing surface */
+ SDL_RenderGetViewport(renderer, &darea);
+
+ for( ; row < 8; row++)
+ {
+ column = row%2;
+ x = column;
+ for( ; column < 4+(row%2); column++)
+ {
+ SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);
+
+ rect.w = darea.w/8;
+ rect.h = darea.h/8;
+ rect.x = x * rect.w;
+ rect.y = row * rect.h;
+ x = x + 2;
+ SDL_RenderFillRect(renderer, &rect);
+ }
+ }
}
void
@@ -59,77 +59,77 @@ loop()
{
SDL_Event e;
while (SDL_PollEvent(&e)) {
- if (e.type == SDL_QUIT) {
- done = 1;
+ if (e.type == SDL_QUIT) {
+ done = 1;
#ifdef __EMSCRIPTEN__
- emscripten_cancel_main_loop();
+ emscripten_cancel_main_loop();
#endif
- return;
- }
+ return;
+ }
- if ((e.type == SDL_KEYDOWN) && (e.key.keysym.sym == SDLK_ESCAPE)) {
- done = 1;
+ if ((e.type == SDL_KEYDOWN) && (e.key.keysym.sym == SDLK_ESCAPE)) {
+ done = 1;
#ifdef __EMSCRIPTEN__
- emscripten_cancel_main_loop();
+ emscripten_cancel_main_loop();
#endif
- return;
- }
- }
-
- DrawChessBoard(renderer);
-
- /* Got everything on rendering surface,
- now Update the drawing image on window screen */
- SDL_UpdateWindowSurface(window);
+ return;
+ }
+ }
+
+ DrawChessBoard(renderer);
+
+ /* Got everything on rendering surface,
+ now Update the drawing image on window screen */
+ SDL_UpdateWindowSurface(window);
}
int
main(int argc, char *argv[])
{
- SDL_Surface *surface;
+ SDL_Surface *surface;
/* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
- /* Initialize SDL */
- if(SDL_Init(SDL_INIT_VIDEO) != 0)
- {
- SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Init fail : %s\n", SDL_GetError());
- return 1;
- }
-
-
- /* Create window and renderer for given surface */
- window = SDL_CreateWindow("Chess Board", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN);
- if(!window)
- {
- SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Window creation fail : %s\n",SDL_GetError());
- return 1;
- }
- surface = SDL_GetWindowSurface(window);
- renderer = SDL_CreateSoftwareRenderer(surface);
- if(!renderer)
- {
- SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Render creation for surface fail : %s\n",SDL_GetError());
- return 1;
- }
-
- /* Clear the rendering surface with the specified color */
- SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF);
- SDL_RenderClear(renderer);
-
-
- /* Draw the Image on rendering surface */
- done = 0;
+ /* Initialize SDL */
+ if(SDL_Init(SDL_INIT_VIDEO) != 0)
+ {
+ SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Init fail : %s\n", SDL_GetError());
+ return 1;
+ }
+
+
+ /* Create window and renderer for given surface */
+ window = SDL_CreateWindow("Chess Board", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN);
+ if(!window)
+ {
+ SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Window creation fail : %s\n",SDL_GetError());
+ return 1;
+ }
+ surface = SDL_GetWindowSurface(window);
+ renderer = SDL_CreateSoftwareRenderer(surface);
+ if(!renderer)
+ {
+ SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Render creation for surface fail : %s\n",SDL_GetError());
+ return 1;
+ }
+
+ /* Clear the rendering surface with the specified color */
+ SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF);
+ SDL_RenderClear(renderer);
+
+
+ /* Draw the Image on rendering surface */
+ done = 0;
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop(loop, 0, 1);
#else
while (!done) {
loop();
- }
+ }
#endif
SDL_Quit();
- return 0;
+ return 0;
}
diff --git a/test/testdropfile.c b/test/testdropfile.c
index 917e75c..550e58e 100644
--- a/test/testdropfile.c
+++ b/test/testdropfile.c
@@ -31,7 +31,7 @@ main(int argc, char *argv[])
int i, done;
SDL_Event event;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Initialize test framework */
diff --git a/test/testfile.c b/test/testfile.c
index 260ac69..e07b2fa 100644
--- a/test/testfile.c
+++ b/test/testfile.c
@@ -69,7 +69,7 @@ main(int argc, char *argv[])
char test_buf[30];
/* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
cleanup();
diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c
index 9af9653..688544e 100644
--- a/test/testgamecontroller.c
+++ b/test/testgamecontroller.c
@@ -247,7 +247,7 @@ main(int argc, char *argv[])
SDL_GameController *gamecontroller;
/* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Initialize SDL (Note: video is required to start event loop) */
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER ) < 0) {
@@ -284,7 +284,7 @@ main(int argc, char *argv[])
SDL_Event event;
int device = atoi(argv[1]);
if (device >= SDL_NumJoysticks()) {
- SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "%i is an invalid joystick index.\n", device);
+ SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "%i is an invalid joystick index.\n", device);
retcode = 1;
} else {
SDL_JoystickGetGUIDString(SDL_JoystickGetDeviceGUID(device),
diff --git a/test/testgl2.c b/test/testgl2.c
index 8c9c305..449e02e 100644
--- a/test/testgl2.c
+++ b/test/testgl2.c
@@ -357,7 +357,7 @@ main(int argc, char *argv[])
SDL_Log("SDL_GL_ACCELERATED_VISUAL: requested %d, got %d\n", accel,
value);
} else {
- SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_ACCELERATED_VISUAL: %s\n",
+ SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to get SDL_GL_ACCELERATED_VISUAL: %s\n",
SDL_GetError());
}
}
diff --git a/test/testgles2.c b/test/testgles2.c
index 24deed5..f75bc15 100644
--- a/test/testgles2.c
+++ b/test/testgles2.c
@@ -169,7 +169,7 @@ perspective_matrix(float fovy, float aspect, float znear, float zfar, float *r)
static void
multiply_matrix(float *lhs, float *rhs, float *r)
{
- int i, j, k;
+ int i, j, k;
float tmp[16];
for (i = 0; i < 4; i++) {
diff --git a/test/testhotplug.c b/test/testhotplug.c
index b98380d..1de96f6 100644
--- a/test/testhotplug.c
+++ b/test/testhotplug.c
@@ -42,7 +42,7 @@ main(int argc, char *argv[])
}
/* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
@@ -134,10 +134,10 @@ main(int argc, char *argv[])
{
SDL_HapticRumblePlay(haptic, 0.25, 250);
}
- if (event.jbutton.button == 0) {
- SDL_Log("Exiting due to button press of button 0\n");
- keepGoing = SDL_FALSE;
- }
+ if (event.jbutton.button == 0) {
+ SDL_Log("Exiting due to button press of button 0\n");
+ keepGoing = SDL_FALSE;
+ }
break;
case SDL_JOYBUTTONUP:
SDL_Log("Button Release: %d\n", event.jbutton.button);
diff --git a/test/testjoystick.c b/test/testjoystick.c
index 7355eec..259b5a8 100644
--- a/test/testjoystick.c
+++ b/test/testjoystick.c
@@ -246,7 +246,7 @@ main(int argc, char *argv[])
SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
/* Enable standard application logging */
- SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
+ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Initialize SDL (Note: video is required to start event loop) */
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) {
diff --git a/test/testlock.c b/test/testlock.c
index c787dc3..1293f95 100644
--- a/test/testlock.c
+++ b/test/testlock.c
@@ -95,7 +95,7 @@ main(int argc, char *argv[])
int i;
int maxproc = 6;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Load the SDL library */
diff --git a/test/testmessage.c b/test/testmessage.c
index 494bfdd..2040e55 100644
--- a/test/testmessage.c
+++ b/test/testmessage.c
@@ -85,7 +85,7 @@ main(int argc, char *argv[])
{
int success;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
diff --git a/test/testmultiaudio.c b/test/testmultiaudio.c
index e6939e0..d98ac94 100644
--- a/test/testmultiaudio.c
+++ b/test/testmultiaudio.c
@@ -166,7 +166,7 @@ main(int argc, char **argv)
{
int devcount = 0;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Load the SDL library */
diff --git a/test/testnative.c b/test/testnative.c
index ae9bbc9..0861bc9 100644
--- a/test/testnative.c
+++ b/test/testnative.c
@@ -131,7 +131,7 @@ main(int argc, char *argv[])
int sprite_w, sprite_h;
SDL_Event event;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
if (SDL_VideoInit(NULL) < 0) {
diff --git a/test/testrendercopyex.c b/test/testrendercopyex.c
index cc25dba..8c5e519 100644
--- a/test/testrendercopyex.c
+++ b/test/testrendercopyex.c
@@ -166,7 +166,7 @@ main(int argc, char *argv[])
int frames;
Uint32 then, now;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Initialize test framework */
diff --git a/test/testresample.c b/test/testresample.c
index c21e660..1c1333d 100644
--- a/test/testresample.c
+++ b/test/testresample.c
@@ -25,7 +25,7 @@ main(int argc, char **argv)
int avgbytes = 0;
SDL_RWops *io = NULL;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
if (argc != 4) {
diff --git a/test/testrumble.c b/test/testrumble.c
index 1b05c9d..27c1937 100644
--- a/test/testrumble.c
+++ b/test/testrumble.c
@@ -48,7 +48,7 @@ main(int argc, char **argv)
char *name;
int index;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
name = NULL;
diff --git a/test/testsem.c b/test/testsem.c
index 3431c5c..456c4f0 100644
--- a/test/testsem.c
+++ b/test/testsem.c
@@ -82,7 +82,7 @@ main(int argc, char **argv)
uintptr_t i;
int init_sem;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
if (argc < 2) {
diff --git a/test/testshader.c b/test/testshader.c
index 5daa127..9a29c6c 100644
--- a/test/testshader.c
+++ b/test/testshader.c
@@ -421,7 +421,7 @@ int main(int argc, char **argv)
GLuint texture;
GLfloat texcoords[4];
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Initialize SDL for video output */
diff --git a/test/testshape.c b/test/testshape.c
index 1caf5a5..845dd59 100644
--- a/test/testshape.c
+++ b/test/testshape.c
@@ -60,7 +60,7 @@ int main(int argc,char** argv)
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
if(argc < 2) {
- SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Shape requires at least one bitmap file as argument.");
+ SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Shape requires at least one bitmap file as argument.");
exit(-1);
}
diff --git a/test/testsprite2.c b/test/testsprite2.c
index ba3ce90..aa5c930 100644
--- a/test/testsprite2.c
+++ b/test/testsprite2.c
@@ -203,13 +203,13 @@ MoveSprites(SDL_Renderer * renderer, SDL_Texture * sprite)
velocity = &velocities[i];
position->x += velocity->x;
if ((position->x < 0) || (position->x >= (viewport.w - sprite_w))) {
- velocity->x = -velocity->x;
- position->x += velocity->x;
+ velocity->x = -velocity->x;
+ position->x += velocity->x;
}
position->y += velocity->y;
if ((position->y < 0) || (position->y >= (viewport.h - sprite_h))) {
- velocity->y = -velocity->y;
- position->y += velocity->y;
+ velocity->y = -velocity->y;
+ position->y += velocity->y;
}
}
@@ -227,7 +227,7 @@ MoveSprites(SDL_Renderer * renderer, SDL_Texture * sprite)
/* Draw sprites */
for (i = 0; i < num_sprites; ++i) {
position = &positions[i];
-
+
/* Blit the sprite onto the screen */
SDL_RenderCopy(renderer, sprite, NULL, position);
}
@@ -263,7 +263,7 @@ main(int argc, char *argv[])
{
int i;
Uint32 then, now, frames;
- Uint64 seed;
+ Uint64 seed;
const char *icon = "icon.bmp";
/* Initialize parameters */
diff --git a/test/testspriteminimal.c b/test/testspriteminimal.c
index 3980b2f..0e3e9a2 100644
--- a/test/testspriteminimal.c
+++ b/test/testspriteminimal.c
@@ -150,7 +150,7 @@ main(int argc, char *argv[])
int i;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
if (SDL_CreateWindowAndRenderer(WINDOW_WIDTH, WINDOW_HEIGHT, 0, &window, &renderer) < 0) {
diff --git a/test/teststreaming.c b/test/teststreaming.c
index 95881a7..623d587 100644
--- a/test/teststreaming.c
+++ b/test/teststreaming.c
@@ -129,7 +129,7 @@ main(int argc, char **argv)
SDL_Window *window;
SDL_RWops *handle;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
diff --git a/test/testthread.c b/test/testthread.c
index 3597fb8..45077d9 100644
--- a/test/testthread.c
+++ b/test/testthread.c
@@ -57,7 +57,7 @@ main(int argc, char *argv[])
{
SDL_Thread *thread;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Load the SDL library */
diff --git a/test/testtimer.c b/test/testtimer.c
index 9587145..5d8d8c7 100644
--- a/test/testtimer.c
+++ b/test/testtimer.c
@@ -45,7 +45,7 @@ main(int argc, char *argv[])
Uint32 start32, now32;
Uint64 start, now;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
if (SDL_Init(SDL_INIT_TIMER) < 0) {
diff --git a/test/testver.c b/test/testver.c
index dce2167..0f93498 100644
--- a/test/testver.c
+++ b/test/testver.c
@@ -26,7 +26,7 @@ main(int argc, char *argv[])
SDL_version compiled;
SDL_version linked;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
#if SDL_VERSION_ATLEAST(2, 0, 0)
diff --git a/test/testwm2.c b/test/testwm2.c
index 102437b..510e29d 100644
--- a/test/testwm2.c
+++ b/test/testwm2.c
@@ -112,7 +112,7 @@ main(int argc, char *argv[])
{
int i;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
SDL_assert(SDL_arraysize(cursorNames) == SDL_NUM_SYSTEM_CURSORS);
diff --git a/test/torturethread.c b/test/torturethread.c
index efbab5e..b774cc6 100644
--- a/test/torturethread.c
+++ b/test/torturethread.c
@@ -79,7 +79,7 @@ main(int argc, char *argv[])
SDL_Thread *threads[NUMTHREADS];
int i;
- /* Enable standard application logging */
+ /* Enable standard application logging */
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
/* Load the SDL library */