summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@ddlm.me>2019-03-22 16:21:59 -0700
committerCedric BAIL <cedric@ddlm.me>2019-03-22 16:21:59 -0700
commit555b18dbaadadbbb97d5731cda93a221a6bb49b1 (patch)
tree9b6aac38ef7b97649f45d98418aa883ee5b2172f
parentbbc29b232bf4db367aba3a2b4437ecc0d0d6a2c0 (diff)
Update use of buffer map that must specify a valid buffer size now.
-rw-r--r--src/bin/image_data_argb.c2
-rw-r--r--src/bin/image_data_argb_alpha.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/image_data_argb.c b/src/bin/image_data_argb.c
index 7e345a4..0beb4e4 100644
--- a/src/bin/image_data_argb.c
+++ b/src/bin/image_data_argb.c
@@ -72,7 +72,7 @@ static void _loop(double t, int f)
72 efl_gfx_entity_size_set(o, EINA_SIZE2D(w, h)); 72 efl_gfx_entity_size_set(o, EINA_SIZE2D(w, h));
73 efl_gfx_fill_set(o, EINA_RECT(0, 0, w, h)); 73 efl_gfx_fill_set(o, EINA_RECT(0, 0, w, h));
74 sl = efl_gfx_buffer_map(o, EFL_GFX_BUFFER_ACCESS_MODE_WRITE, 74 sl = efl_gfx_buffer_map(o, EFL_GFX_BUFFER_ACCESS_MODE_WRITE,
75 &EINA_RECT(0, 0, 0, 0), EFL_GFX_COLORSPACE_ARGB8888, 0, &st); 75 &EINA_RECT(0, 0, w, h), EFL_GFX_COLORSPACE_ARGB8888, 0, &st);
76 data = sl.mem; 76 data = sl.mem;
77 if (!data) 77 if (!data)
78 { 78 {
diff --git a/src/bin/image_data_argb_alpha.c b/src/bin/image_data_argb_alpha.c
index f7306fd..03618f6 100644
--- a/src/bin/image_data_argb_alpha.c
+++ b/src/bin/image_data_argb_alpha.c
@@ -74,7 +74,7 @@ static void _loop(double t, int f)
74 efl_gfx_entity_size_set(o, EINA_SIZE2D(w, h)); 74 efl_gfx_entity_size_set(o, EINA_SIZE2D(w, h));
75 efl_gfx_fill_set(o, EINA_RECT(0, 0, w, h)); 75 efl_gfx_fill_set(o, EINA_RECT(0, 0, w, h));
76 sl = efl_gfx_buffer_map(o, EFL_GFX_BUFFER_ACCESS_MODE_WRITE, 76 sl = efl_gfx_buffer_map(o, EFL_GFX_BUFFER_ACCESS_MODE_WRITE,
77 &EINA_RECT(0, 0, 0, 0), EFL_GFX_COLORSPACE_ARGB8888, 0, &st); 77 &EINA_RECT(0, 0, w, h), EFL_GFX_COLORSPACE_ARGB8888, 0, &st);
78 if (!sl.mem) 78 if (!sl.mem)
79 { 79 {
80 fprintf(stderr, "ERROR: Failed to map image!\n"); 80 fprintf(stderr, "ERROR: Failed to map image!\n");