efl_gfx_path: Add optimized path command 50/214550/1
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 24 Sep 2019 02:52:30 +0000 (11:52 +0900)
committerHermet Park <hermetpark@gmail.com>
Tue, 24 Sep 2019 03:12:51 +0000 (12:12 +0900)
Summary:
If 'L' is removed due to optimization, it should be supported like 3b1f7be
If the previous command is 'M', use 'L'.

Test Plan: N/A

Reviewers: Hermet, smohanty, kimcinoo

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10104

Change-Id: I97478dffc8c1612d3e60e905f4af37de0b6e5d9d

src/lib/efl/interfaces/efl_gfx_path.c

index 447b234..85be89c 100644 (file)
@@ -1380,9 +1380,9 @@ _next_command(char *path, char *cmd, double *arr, int *count)
    else 
      {
         if (*cmd == 'm')
-          {
-             *cmd = 'l';
-          }
+          *cmd = 'l';
+        else if (*cmd == 'M')
+          *cmd = 'L';
      }
    if ( *count == 7)
      {