[5/8] test: space to tab.

Submitted by bansan85 on Dec. 13, 2017, 7:41 p.m.

Details

Message ID 20171213194139.19359-5-legarrec.vincent@gmail.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Pixman

Not browsing as part of any series.

Commit Message

bansan85 Dec. 13, 2017, 7:41 p.m.
---
 test/stress-test.c | 70 +++++++++++++++++++++++++++---------------------------
 1 file changed, 35 insertions(+), 35 deletions(-)

Patch hide | download patch | download mbox

diff --git a/test/stress-test.c b/test/stress-test.c
index 273a2a2..c4148ff 100644
--- a/test/stress-test.c
+++ b/test/stress-test.c
@@ -221,14 +221,14 @@  random_format (alpha_preference_t alpha)
     if (alpha >= PREFER_ALPHA &&
 	(alpha == REQUIRE_ALPHA || prng_rand_n (4) != 0))
     {
-        do
-        {
-            format = image_formats[n++ % ARRAY_LENGTH (image_formats)];
-        } while (PIXMAN_FORMAT_TYPE (format) != PIXMAN_TYPE_A);
+	do
+	{
+	    format = image_formats[n++ % ARRAY_LENGTH (image_formats)];
+	} while (PIXMAN_FORMAT_TYPE (format) != PIXMAN_TYPE_A);
     }
     else
     {
-        format = image_formats[n];
+	format = image_formats[n];
     }
 
     return format;
@@ -257,10 +257,10 @@  create_random_bits_image (alpha_preference_t alpha_preference)
 	indexed = malloc (sizeof (pixman_indexed_t));
 
 	if (!initialize_palette (indexed, PIXMAN_FORMAT_BPP (format), TRUE))
-        {
+	{
 	    free (indexed);
 	    return NULL;
-        }
+	}
 
     }
     else if (PIXMAN_FORMAT_TYPE (format) == PIXMAN_TYPE_GRAY)
@@ -268,10 +268,10 @@  create_random_bits_image (alpha_preference_t alpha_preference)
 	indexed = malloc (sizeof (pixman_indexed_t));
 
 	if (!initialize_palette (indexed, PIXMAN_FORMAT_BPP (format), FALSE))
-        {
+	{
 	    free (indexed);
 	    return NULL;
-        }
+	}
     }
     else
     {
@@ -785,13 +785,13 @@  create_random_trapezoids (int *n_traps, int height, int width)
 
     for (i = 0; i < *n_traps; ++i)
     {
-        pixman_trapezoid_t *t = &(trapezoids[i]);
+	pixman_trapezoid_t *t = &(trapezoids[i]);
 
-        t->top = prng_rand_n (height) << 16;
-        t->bottom = prng_rand_n (height) << 16;
+	t->top = prng_rand_n (height) << 16;
+	t->bottom = prng_rand_n (height) << 16;
 
-        random_line (&t->left, height, width);
-        random_line (&t->right, height, width);
+	random_line (&t->left, height, width);
+	random_line (&t->right, height, width);
     }
 
     return trapezoids;
@@ -875,8 +875,8 @@  run_test (uint32_t seed, pixman_bool_t verbose, uint32_t mod)
 
     if (prng_rand_n (8) == 0)
     {
-        int n_traps;
-        pixman_trapezoid_t *trapezoids;
+	int n_traps;
+	pixman_trapezoid_t *trapezoids;
 	int p = prng_rand_n (3);
 
 	if (p == 0)
@@ -923,30 +923,30 @@  run_test (uint32_t seed, pixman_bool_t verbose, uint32_t mod)
 	    pixman_add_trapezoids (
 		dest, rand_x (dest), rand_y (dest), n_traps, trapezoids);
 	    break;
-        }
+	}
 
 	free (trapezoids);
     }
     else
     {
-        dest = create_random_bits_image (DONT_CARE);
-        source = create_random_image ();
-        mask = create_random_image ();
-
-        if (source && mask && dest)
-        {
-            set_general_properties (dest, TRUE);
-
-            op = op_list [prng_rand_n (ARRAY_LENGTH (op_list))];
-
-            pixman_image_composite32 (op,
-                                      source, mask, dest,
-                                      rand_x (source), rand_y (source),
-                                      rand_x (mask), rand_y (mask),
-                                      0, 0,
-                                      dest->bits.width,
-                                      dest->bits.height);
-        }
+	dest = create_random_bits_image (DONT_CARE);
+	source = create_random_image ();
+	mask = create_random_image ();
+
+	if (source && mask && dest)
+	{
+	    set_general_properties (dest, TRUE);
+
+	    op = op_list [prng_rand_n (ARRAY_LENGTH (op_list))];
+
+	    pixman_image_composite32 (op,
+				      source, mask, dest,
+				      rand_x (source), rand_y (source),
+				      rand_x (mask), rand_y (mask),
+				      0, 0,
+				      dest->bits.width,
+				      dest->bits.height);
+	}
     }
 
 out: