example/evasmap3d: change to simpler call.
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 10 Nov 2014 11:13:47 +0000 (20:13 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 10 Nov 2014 11:15:16 +0000 (20:15 +0900)
src/bin/test_3d.c

index 2fec4ee..639e6c3 100644 (file)
@@ -44,12 +44,11 @@ _cube_new(Evas *evas, Evas_Coord w, Evas_Coord h, Evas_Coord d)
      {
         Evas_Object *o;
         char buf[PATH_MAX];
-        o = evas_object_image_add(evas);
+        o = evas_object_image_filled_add(evas);
         c->side[i].o = o;
         snprintf(buf, sizeof(buf), "%s/images/%s",
                  elm_app_data_dir_get(), "twofish.jpg");
         evas_object_image_file_set(o, buf, NULL);
-        evas_object_image_fill_set(o, 0, 0, 256, 256);
         evas_object_resize(o, 256, 256);
         evas_object_image_smooth_scale_set(o, EINA_FALSE);
         evas_object_pass_events_set(o, EINA_TRUE);