summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);