From 75464f5d3667aae9a148d29d98b4d86880eca573 Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Thu, 18 May 2017 20:45:21 +0900 Subject: [PATCH] Read nine patch info from *.9.png files as well Change-Id: I3165ac8d76d962c3a67ef33d9cdf233927bfe043 --- scl/gwes/efl/sclgraphics-efl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scl/gwes/efl/sclgraphics-efl.cpp b/scl/gwes/efl/sclgraphics-efl.cpp index d9926dd..e661f92 100644 --- a/scl/gwes/efl/sclgraphics-efl.cpp +++ b/scl/gwes/efl/sclgraphics-efl.cpp @@ -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; } } -- 2.7.4