1
0
Fork 0

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 47db7af4d3
commit 934eb5d251

View file

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