From: <mar...@us...> - 2010-06-28 20:31:51
|
Revision: 3443 http://navit.svn.sourceforge.net/navit/?rev=3443&view=rev Author: martin-s Date: 2010-06-28 20:31:45 +0000 (Mon, 28 Jun 2010) Log Message: ----------- Add:graphics_gd:Workaround for older gd version Modified Paths: -------------- trunk/navit/navit/graphics/gd/graphics_gd.c Modified: trunk/navit/navit/graphics/gd/graphics_gd.c =================================================================== --- trunk/navit/navit/graphics/gd/graphics_gd.c 2010-06-28 19:56:18 UTC (rev 3442) +++ trunk/navit/navit/graphics/gd/graphics_gd.c 2010-06-28 20:31:45 UTC (rev 3443) @@ -347,7 +347,12 @@ gdImageSetStyle(gr->im, color, gc->dash_count); } gdImageSetThickness(gr->im, gc->width); +#ifdef GD_NO_IMAGE_OPEN_POLYGON + for (i = 0 ; i < count-1 ; i++) + gdImageLine(gr->im, p[i].x, p[i].y, p[i+1].x, p[i+1].y, gc->dash_count ? gdStyled : gc->color); +#else gdImageOpenPolygon(gr->im, (gdPointPtr) p, count, gc->dash_count ? gdStyled : gc->color); +#endif } static void This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |