Ector: Fix clang warning
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 21 Apr 2015 09:58:00 +0000 (18:58 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 21 Apr 2015 11:11:02 +0000 (20:11 +0900)
Invalid type used for field and implicit conversions

src/lib/ector/cairo/ector_renderer_cairo_shape.c
src/lib/ector/ector_private.h

index ceab6c4..2b79e8b 100644 (file)
@@ -204,8 +204,8 @@ _ector_renderer_cairo_shape_ector_renderer_generic_base_draw(Eo *obj, Ector_Rend
 
        // Set dash, cap and join
        cairo_set_line_width(pd->parent->cairo, (pd->shape->stroke.width * pd->shape->stroke.scale * 2));
-       cairo_set_line_cap(pd->parent->cairo, pd->shape->stroke.cap);
-       cairo_set_line_join(pd->parent->cairo, pd->shape->stroke.join);
+       cairo_set_line_cap(pd->parent->cairo, (cairo_line_cap_t) pd->shape->stroke.cap);
+       cairo_set_line_join(pd->parent->cairo, (cairo_line_join_t) pd->shape->stroke.join);
        cairo_stroke(pd->parent->cairo);
      }
    else
index ff97f77..31072d2 100644 (file)
@@ -141,7 +141,7 @@ struct _Ector_Renderer_Generic_Shape_Data
       unsigned int dash_length;
 
       Efl_Gfx_Cap cap;
-      Efl_Gfx_Cap join;
+      Efl_Gfx_Join join;
    } stroke;
 };