summaryrefslogtreecommitdiff
path: root/src/tests/evas/evas_test_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/evas/evas_test_image.c')
-rw-r--r--src/tests/evas/evas_test_image.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tests/evas/evas_test_image.c b/src/tests/evas/evas_test_image.c
index 2d715f0021..e0637a12fe 100644
--- a/src/tests/evas/evas_test_image.c
+++ b/src/tests/evas/evas_test_image.c
@@ -675,14 +675,17 @@ START_TEST(evas_object_image_map_unmap)
675 Eina_Bool all_white = 1, all_transparent = 1; 675 Eina_Bool all_white = 1, all_transparent = 1;
676 Eina_Rw_Slice slice; 676 Eina_Rw_Slice slice;
677 Eina_Rect r, r2; 677 Eina_Rect r, r2;
678 Eina_Size2D sz;
678 679
679 const char *imgpath = TESTS_IMG_DIR "/Pic4.png"; 680 const char *imgpath = TESTS_IMG_DIR "/Pic4.png";
680 681
681 o = efl_add(EFL_CANVAS_IMAGE_CLASS, e); 682 o = efl_add(EFL_CANVAS_IMAGE_CLASS, e);
682 efl_file_set(o, imgpath, NULL); 683 efl_file_set(o, imgpath, NULL);
683 efl_gfx_view_size_get(o, &w, &h); 684 sz = efl_gfx_view_size_get(o);
684 cs = efl_gfx_buffer_colorspace_get(o); 685 cs = efl_gfx_buffer_colorspace_get(o);
685 686
687 w = sz.w;
688 h = sz.h;
686 r.x = (w / 4) & ~3; 689 r.x = (w / 4) & ~3;
687 r.y = (h / 4) & ~3; 690 r.y = (h / 4) & ~3;
688 r.w = (w / 2) & ~3; 691 r.w = (w / 2) & ~3;
@@ -757,7 +760,9 @@ START_TEST(evas_object_image_map_unmap)
757 760
758 o2 = efl_add(EFL_CANVAS_IMAGE_CLASS, e); 761 o2 = efl_add(EFL_CANVAS_IMAGE_CLASS, e);
759 efl_file_set(o2, tmp, NULL); 762 efl_file_set(o2, tmp, NULL);
760 efl_gfx_view_size_get(o, &w2, &h2); 763 sz = efl_gfx_view_size_get(o);
764 w2 = sz.w;
765 h2 = sz.h;
761 766
762 // unlink now to not leave any crap after failing the test 767 // unlink now to not leave any crap after failing the test
763 unlink(tmp); 768 unlink(tmp);