summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/efl/interfaces/efl_gfx_path.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_path.c b/src/lib/efl/interfaces/efl_gfx_path.c
index 0f69653df9..b0e00f9f30 100644
--- a/src/lib/efl/interfaces/efl_gfx_path.c
+++ b/src/lib/efl/interfaces/efl_gfx_path.c
@@ -1108,16 +1108,18 @@ _efl_gfx_path_append_rect(Eo *obj, Efl_Gfx_Path_Data *pd,
1108 } 1108 }
1109 1109
1110 // clamp the rx and ry radius value. 1110 // clamp the rx and ry radius value.
1111 rx = 2*rx;
1112 ry = 2*ry;
1113 if (rx > w) rx = w; 1111 if (rx > w) rx = w;
1114 if (ry > h) ry = h; 1112 if (ry > h) ry = h;
1115 1113
1116 _efl_gfx_path_append_move_to(obj, pd, x, y + h/2); 1114 _efl_gfx_path_append_move_to(obj, pd, x + rx, y);
1117 _efl_gfx_path_append_arc(obj, pd, x, y + h - ry, rx, ry, 180, 90); 1115 _efl_gfx_path_append_line_to(obj, pd, x + (w - rx), y);
1118 _efl_gfx_path_append_arc(obj, pd, x + w - rx, y + h - ry, rx, ry, 270, 90); 1116 _efl_gfx_path_append_quadratic_to(obj, pd, x + w, y + ry, x + w, y);
1119 _efl_gfx_path_append_arc(obj, pd, x + w - rx, y, rx, ry, 0, 90); 1117 _efl_gfx_path_append_line_to(obj, pd, x + w, y + (h - ry));
1120 _efl_gfx_path_append_arc(obj, pd, x, y, rx, ry, 90, 90); 1118 _efl_gfx_path_append_quadratic_to(obj, pd, x + (w - rx), y + h, x + w, y + h);
1119 _efl_gfx_path_append_line_to(obj, pd, x + rx, y + h);
1120 _efl_gfx_path_append_quadratic_to(obj, pd, x , y + (h - ry), x, y + h);
1121 _efl_gfx_path_append_line_to(obj, pd, x, y + ry);
1122 _efl_gfx_path_append_quadratic_to(obj, pd, x + rx, y, x, y);
1121 _efl_gfx_path_append_close(obj, pd); 1123 _efl_gfx_path_append_close(obj, pd);
1122 1124
1123 //update convex flag 1125 //update convex flag