primitives: Don't use dynamic arrays since VS2008 can't cope with them :-(

This changes _cogl_path_fill_nodes_scanlines to use g_alloca instead of
using a variable to declare an array length.
This commit is contained in:
Robert Bragg 2009-11-27 15:24:09 +00:00
parent 944423a8d9
commit 120f94d073

View File

@ -1294,7 +1294,7 @@ _cogl_path_fill_nodes_scanlines (CoglPathNode *path,
* data structure that has smaller overhead for inserting the
* curve/scanline intersections.
*/
GSList *scanlines[bounds_h];
GSList **scanlines = g_alloca (bounds_h * sizeof (GSList *));
int i;
int prev_x;