Read nine patch info from *.9.png files as well 15/130015/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Thu, 18 May 2017 11:45:21 +0000 (20:45 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 19 May 2017 01:09:46 +0000 (10:09 +0900)
Change-Id: I3165ac8d76d962c3a67ef33d9cdf233927bfe043

scl/gwes/efl/sclgraphics-efl.cpp

index d9926dd..e661f92 100644 (file)
@@ -141,8 +141,9 @@ static sclboolean check_nine_patch_png_file(const char *image_path)
     for (sclint loop = strlen(image_path);!found && loop > 0;loop--) {
         if (image_path[loop] == '.') {
             found = TRUE;
-            if (loop >= 2) { // for checking prefix ".#"
-                if (strcasecmp(image_path + loop - 2, ".#.png") == 0) {
+            if (loop >= 2) { // for checking prefix ".#" and ".9"
+                if (strcasecmp(image_path + loop - 2, ".#.png") == 0 ||
+                    strcasecmp(image_path + loop - 2, ".9.png") == 0) {
                     return TRUE;
                 }
             }