diff options
author | Tom Hacohen <tom@stosb.com> | 2016-03-02 14:42:46 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2016-03-03 09:58:08 +0000 |
commit | 23a6b12183aa1365a6da33ab4f06bdf04b42e1e1 (patch) | |
tree | 56882ea26cd19a57a3cd9ef2584a44cb54970760 /src/examples | |
parent | 8780da1fbdb4e06a12508bcc86023ee2d1b4e30a (diff) | |
download | efl-23a6b12183aa1365a6da33ab4f06bdf04b42e1e1.tar.gz |
Fix migration script mistakes and compilation warnings.
Mostly unused vars following the removal of eo_do_ret().
However, there are some cases where the migration script got some things
wrong, and I had to manually fix them.
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/evas/evas-3d-parallax-occlusion.c | 2 | ||||
-rw-r--r-- | src/examples/evas/shooter/evas-3d-shooter.c | 26 |
2 files changed, 19 insertions, 9 deletions
diff --git a/src/examples/evas/evas-3d-parallax-occlusion.c b/src/examples/evas/evas-3d-parallax-occlusion.c index ff20dfe20e..67be66536d 100644 --- a/src/examples/evas/evas-3d-parallax-occlusion.c +++ b/src/examples/evas/evas-3d-parallax-occlusion.c @@ -246,7 +246,7 @@ main(void) image = evas_object_image_filled_add(evas); efl_gfx_size_set(image, WIDTH, HEIGHT); efl_gfx_visible_set(image, EINA_TRUE); - evas_object_focus_set(image, image, EINA_TRUE); + evas_object_focus_set(image, EINA_TRUE); /* Set the image object as render target for 3D scene. */ evas_obj_image_scene_set(image, data.scene); diff --git a/src/examples/evas/shooter/evas-3d-shooter.c b/src/examples/evas/shooter/evas-3d-shooter.c index 9ea9ceb1a4..2e83fd8e6d 100644 --- a/src/examples/evas/shooter/evas-3d-shooter.c +++ b/src/examples/evas/shooter/evas-3d-shooter.c @@ -250,13 +250,19 @@ _key_down(void *data, } } else if (!strcmp(ev->key, "F1")) - evas_canvas3d_node_position_set(scene->camera_node, 0.0, 80.0, 30.0); - evas_canvas3d_node_look_at_set(scene->camera_node, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 0.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 1.0, 0.0); + { + evas_canvas3d_node_position_set(scene->camera_node, 0.0, 80.0, 30.0); + evas_canvas3d_node_look_at_set(scene->camera_node, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 0.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 1.0, 0.0); + } else if (!strcmp(ev->key, "F2")) - evas_canvas3d_node_position_set(scene->camera_node, -2.0, 0.0, 4.0); + { + evas_canvas3d_node_position_set(scene->camera_node, -2.0, 0.0, 4.0); evas_canvas3d_node_look_at_set(scene->camera_node, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 0.0, -100.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 1.0, 0.0); + } else if (!strcmp(ev->key, "A")) - aabb_index++; + { + aabb_index++; + } } static void @@ -831,8 +837,10 @@ _mesh_setup_wall(Scene_Data *data, int index) /* placing of wall carpet on the floor grid */ if (index == 0) - evas_canvas3d_node_scale_set(data->mesh_node_wall[index], 6.7 * 19.5, 20.0, 2.0); - evas_canvas3d_node_position_set(data->mesh_node_wall[index], -39.7 + 18.6 * 3, 0.0, -60.3); + { + evas_canvas3d_node_scale_set(data->mesh_node_wall[index], 6.7 * 19.5, 20.0, 2.0); + evas_canvas3d_node_position_set(data->mesh_node_wall[index], -39.7 + 18.6 * 3, 0.0, -60.3); + } else if (index == 1) { evas_canvas3d_node_scale_set(data->mesh_node_wall[index], 5 * 19.5, 20.0, 2.0); @@ -840,8 +848,10 @@ _mesh_setup_wall(Scene_Data *data, int index) evas_canvas3d_node_orientation_angle_axis_set(data->mesh_node_wall[index], 90, 0, 1.0, 0.0); } else if (index == 2) - evas_canvas3d_node_scale_set(data->mesh_node_wall[index], 6.7 * 19.5, 20.0, 2.0); - evas_canvas3d_node_position_set(data->mesh_node_wall[index], -39.7 + 18.6*3, 0.0, 35.3); + { + evas_canvas3d_node_scale_set(data->mesh_node_wall[index], 6.7 * 19.5, 20.0, 2.0); + evas_canvas3d_node_position_set(data->mesh_node_wall[index], -39.7 + 18.6*3, 0.0, 35.3); + } else if (index == 3) { evas_canvas3d_node_scale_set(data->mesh_node_wall[index], 5* 19.5, 20.0, 2.0); |