Revert "fix the layer's crop rect"
[platform/core/uifw/libtdm.git] / tools / buffers.c
index 805383b..907e6f8 100644 (file)
@@ -159,7 +159,7 @@ unsigned int format_fourcc(const char *name)
  */
 
 struct color_rgb24 {
-       unsigned int value: 24;
+       unsigned int value:24;
 } __attribute__((__packed__));
 
 struct color_yuv {
@@ -169,7 +169,7 @@ struct color_yuv {
 };
 
 #define MAKE_YUV_601_Y(r, g, b) \
-       ((( 66 * (r) + 129 * (g) +  25 * (b) + 128) >> 8) + 16)
+       (((66 * (r) + 129 * (g) +  25 * (b) + 128) >> 8) + 16)
 #define MAKE_YUV_601_U(r, g, b) \
        (((-38 * (r) -  74 * (g) + 112 * (b) + 128) >> 8) + 128)
 #define MAKE_YUV_601_V(r, g, b) \
@@ -585,9 +585,8 @@ fill_smpte_rgb32(const struct rgb_info *rgb, unsigned char *mem,
                        ((uint32_t *)mem)[x] =
                                colors_bottom[(x - width * 5 / 7) * 3
                                                          / (width / 7) + 4];
-               for (; x < width; ++x) {
+               for (; x < width; ++x)
                        ((uint32_t *)mem)[x] = (rand_r(&rand_seed) % 2) ? MAKE_RGBA(rgb, 255, 255, 255, ALPHA_VALUE) : MAKE_RGBA(rgb, 0, 0, 0, ALPHA_VALUE);
-               }
                mem += stride;
        }
 }