From: <sie...@us...> - 2009-10-18 21:35:46
|
Revision: 12675 http://alleg.svn.sourceforge.net/alleg/?rev=12675&view=rev Author: siegelord Date: 2009-10-18 21:35:38 +0000 (Sun, 18 Oct 2009) Log Message: ----------- Force splines to have at least 2 points Modified Paths: -------------- allegro/branches/4.9/addons/primitives/high_primitives.c Modified: allegro/branches/4.9/addons/primitives/high_primitives.c =================================================================== --- allegro/branches/4.9/addons/primitives/high_primitives.c 2009-10-17 07:09:57 UTC (rev 12674) +++ allegro/branches/4.9/addons/primitives/high_primitives.c 2009-10-18 21:35:38 UTC (rev 12675) @@ -718,6 +718,10 @@ (float)hypot(points[6] - points[4], points[7] - points[5])) * 1.2 * ALLEGRO_PRIM_QUALITY / 10); ALLEGRO_PRIM_COLOR prim_color; + + if(num_segments < 2) + num_segments = 2; + check_color_blending(&color); prim_color = al_get_prim_color(color); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |