diff options
author | Floris Van den Abeele <florisvda@gmail.com> | 2019-10-07 22:55:48 +0200 |
---|---|---|
committer | Floris Van den Abeele <florisvda@gmail.com> | 2019-10-07 22:55:48 +0200 |
commit | 6134c915fd66fdb4c6b89b0547e68ac8edc62a08 (patch) | |
tree | 5ac7e5dacae7e0eba6b629839680dd4d4381cb76 | |
parent | 9b6d501726e4327db13f6516d229ec43e3cd44e0 (diff) | |
download | clutter-6134c915fd66fdb4c6b89b0547e68ac8edc62a08.tar.gz |
Fix coding style issues in MR !10
-rw-r--r-- | clutter/clutter-main.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index bae74aaf4..89b2f9e6b 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -617,12 +617,12 @@ _clutter_id_to_color (guint id_, g_assert (bpc == 8 || bpc == 10); /* compute the numbers we'll store in the components */ - red = (id_ >> (ctx->fb_g_mask_used+ctx->fb_b_mask_used)) - & (0xff >> (bpc-ctx->fb_r_mask_used)); + red = (id_ >> (ctx->fb_g_mask_used + ctx->fb_b_mask_used)) + & (0xff >> (bpc - ctx->fb_r_mask_used)); green = (id_ >> ctx->fb_b_mask_used) - & (0xff >> (bpc-ctx->fb_g_mask_used)); + & (0xff >> (bpc - ctx->fb_g_mask_used)); blue = (id_) - & (0xff >> (bpc-ctx->fb_b_mask_used)); + & (0xff >> (bpc - ctx->fb_b_mask_used)); /* shift left bits a bit and add one, this circumvents * at least some potential rounding errors in GL/GLES @@ -652,9 +652,9 @@ _clutter_id_to_color (guint id_, */ if (G_UNLIKELY (clutter_pick_debug_flags & CLUTTER_DEBUG_DUMP_PICK_BUFFERS)) { - col->red = (col->red << bpc/2) | (col->red >> bpc/2); - col->green = (col->green << bpc/2) | (col->green >> bpc/2); - col->blue = (col->blue << bpc/2) | (col->blue >> bpc/2); + col->red = (col->red << bpc / 2) | (col->red >> bpc / 2); + col->green = (col->green << bpc / 2) | (col->green >> bpc / 2); + col->blue = (col->blue << bpc / 2) | (col->blue >> bpc / 2); } } @@ -685,11 +685,11 @@ _clutter_pixel_to_id (guchar pixel[4]) * identifiers (otherwise pick buffers dumped to an image will pretty * much just look black.) Here we reverse that rotation. */ - tmp = ((pixel[0] << bpc/2) | (pixel[0] >> bpc/2)); + tmp = ((pixel[0] << bpc / 2) | (pixel[0] >> bpc / 2)); red = tmp >> (bpc - ctx->fb_r_mask); - tmp = ((pixel[1] << bpc/2) | (pixel[1] >> bpc/2)); + tmp = ((pixel[1] << bpc / 2) | (pixel[1] >> bpc / 2)); green = tmp >> (bpc - ctx->fb_g_mask); - tmp = ((pixel[2] << bpc/2) | (pixel[2] >> bpc/2)); + tmp = ((pixel[2] << bpc / 2) | (pixel[2] >> bpc / 2)); blue = tmp >> (bpc - ctx->fb_b_mask); } else |