The polygon drawing code for the DirectFB backend incorrectly casts a
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 25 Jan 2012 18:40:22 +0000 (18:40 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 25 Jan 2012 18:40:22 +0000 (18:40 +0000)
void pointer causing a segfault. The attached patch fixes the issue
and allows an expedite run to complete.

By: Will Newton <will.newton@gmail.com>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@67543 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/directfb/evas_engine.c

index 17914ab..5347d2d 100644 (file)
@@ -1138,7 +1138,8 @@ evas_engine_dfb_rectangle_draw(void *data, void *context, void *surface, int x,
 static void
 evas_engine_dfb_polygon_draw(void *data __UNUSED__, void *context, void *surface, void *polygon, int x, int y)
 {
-   _dfb_polygon_draw(surface, context, polygon, x, y);
+   DirectFB_Engine_Image_Entry *eim = surface;
+   _dfb_polygon_draw(eim->surface, context, polygon, x, y);
 }
 #else
 static void