summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksym Volodin <m.volodin@samsung.com>2014-12-09 03:10:59 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-09 03:13:56 +0100
commitf83d23a327f733f80df1180ca748be00258aaa69 (patch)
treeb2679f78646bcc6f40f0f8465a3a0532e5ac1887
parent2f8121d66ee6b414d20adbadc2991ac0281ab660 (diff)
edje: Edje_Edit - generate 'perspective' block
Summary: Adds focal and zplane perspective to the part when generating an EDC. Reviewers: Hermet, raster, cedric Reviewed By: cedric Subscribers: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1742 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/edje/edje_edit.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 369cd02..872cbde 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -10279,6 +10279,17 @@ _edje_generate_source_of_state(Evas_Object *obj, const char *part, const char *s
10279 BUF_APPEND(I5"}\n"); 10279 BUF_APPEND(I5"}\n");
10280 } 10280 }
10281 10281
10282 if ((pd->persp.zplane != 0) || (pd->persp.focal != 1000))
10283 {
10284 BUF_APPEND(I5"perspective {\n");
10285
10286 if (pd->persp.zplane != 0)
10287 BUF_APPENDF(I6"zplane: %d;\n", pd->persp.zplane);
10288 if (pd->persp.focal != 1000)
10289 BUF_APPENDF(I6"focal: %d;\n", pd->persp.focal);
10290
10291 BUF_APPEND(I5"}\n");
10292 }
10282 10293
10283 10294
10284 //Image 10295 //Image