summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-17 14:03:36 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-17 14:04:40 +0900
commita1b503d0adfcdb881e4fa71bcb9cfc8dcb0e8314 (patch)
treeae9bf0e2bce427c3853dcd0c8d21354b5270c3a4 /src
parent239c326b96bef137bf9ace35cbc8c9ce4ba7efac (diff)
ecore-evas - example - fix lack of bg object in sub buffer
this fixes T229
Diffstat (limited to 'src')
-rw-r--r--src/examples/ecore/ecore_evas_buffer_example_02.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/examples/ecore/ecore_evas_buffer_example_02.c b/src/examples/ecore/ecore_evas_buffer_example_02.c
index 0d59e1fa62..15180b6d8c 100644
--- a/src/examples/ecore/ecore_evas_buffer_example_02.c
+++ b/src/examples/ecore/ecore_evas_buffer_example_02.c
@@ -40,7 +40,7 @@ int
40main(void) 40main(void)
41{ 41{
42 Evas *canvas, *sub_canvas; 42 Evas *canvas, *sub_canvas;
43 Evas_Object *bg, *r1, *r2, *r3; /* "sub" canvas objects */ 43 Evas_Object *bg, *r0, *r1, *r2, *r3; /* "sub" canvas objects */
44 Evas_Object *border, *img; /* canvas objects */ 44 Evas_Object *border, *img; /* canvas objects */
45 Ecore_Evas *sub_ee; 45 Ecore_Evas *sub_ee;
46 46
@@ -90,6 +90,12 @@ main(void)
90 evas_object_resize(img, ((2 * WIDTH) / 3) - 6, ((2 * HEIGHT) / 3) - 6); 90 evas_object_resize(img, ((2 * WIDTH) / 3) - 6, ((2 * HEIGHT) / 3) - 6);
91 ecore_evas_resize(sub_ee, ((2 * WIDTH) / 3) - 6, ((2 * HEIGHT) / 3) - 6); 91 ecore_evas_resize(sub_ee, ((2 * WIDTH) / 3) - 6, ((2 * HEIGHT) / 3) - 6);
92 92
93 r0 = evas_object_rectangle_add(sub_canvas);
94 evas_object_color_set(r0, 0, 0, 0, 255); /* 100% opaque black bg */
95 evas_object_move(r0, 0, 0);
96 evas_object_resize(r0, ((2 * WIDTH) / 3) - 6, ((2 * HEIGHT) / 3) - 6);
97 evas_object_show(r0);
98
93 r1 = evas_object_rectangle_add(sub_canvas); 99 r1 = evas_object_rectangle_add(sub_canvas);
94 evas_object_color_set(r1, 255, 0, 0, 255); /* 100% opaque red */ 100 evas_object_color_set(r1, 255, 0, 0, 255); /* 100% opaque red */
95 evas_object_move(r1, 10, 10); 101 evas_object_move(r1, 10, 10);