This is an automated email from the git hooks/post-receive script.
git pushed a commit to reference refs/pull/287/head
in repository efl.
View the commit online.
commit 78728cfbc435a75b4d9b6ee89c08e6e72c9314c6
Author: Cedric BAIL <[email protected]>
AuthorDate: Sat Nov 28 22:46:10 2026 -0600
evas/gl: draw every face of a map that starts with a rectangle
A map whose first four points make an upright rectangle over the whole
image is drawn as a plain image. Only those four points were looked at,
so on a map with more of them the other faces were not drawn.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/modules/evas/engines/gl_generic/evas_engine.c | 1 +
src/tests/evas/evas_test_map.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c
index 5064758b67..e79e30450a 100644
--- a/src/modules/evas/engines/gl_generic/evas_engine.c
+++ b/src/modules/evas/engines/gl_generic/evas_engine.c
@@ -1364,6 +1364,7 @@ eng_image_map_draw(void *engine EINA_UNUSED, void *data, void *context, void *su
gl_context->dc = context;
if (!((RGBA_Draw_Context*) context)->anti_alias &&
+ (m->count == 4) &&
fabsf(m->pts[0].fx - m->pts[3].fx) < FLT_EPSILON &&
fabsf(m->pts[1].fx - m->pts[2].fx) < FLT_EPSILON &&
fabsf(m->pts[0].fy - m->pts[1].fy) < FLT_EPSILON &&
diff --git a/src/tests/evas/evas_test_map.c b/src/tests/evas/evas_test_map.c
index 33b0d7356b..bf084de5e5 100644
--- a/src/tests/evas/evas_test_map.c
+++ b/src/tests/evas/evas_test_map.c
@@ -644,6 +644,9 @@ static const Map_Scene _map_scenes[] =
{ "off center", { 30, 230, 230, 30 }, { 20, 20, 140, 140 }, { 0, 150, 150, 0 }, 4, 0, 200, 180, 110 },
{ "eye low and right", { 150, 350, 350, 150 }, { 50, 50, 250, 250 }, { 0 }, 4, 40, 300,
340, 230 },
+ /* only the first four points of a map say whether it is a rectangle */
+ { "rectangle then face", { 20, 120, 120, 20, 200, 400, 400, 200 },
+ { 20, 20, 120, 120, 60, 60, 260, 260 }, { 0, 0, 0, 0, 0, 200, 200, 0 }, 8, 0, 300, 180, 110 },
{ "inside a mapped parent", { 150, 350, 350, 150 }, { 50, 50, 250, 250 }, { 0 }, 4, 40, 300,
180, 110, EINA_TRUE },
/* not an upright rectangle, which would be drawn as a plain image */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.