From 934eb5d251ad9d9987d0ff1f0f9878fffc2484f1 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Fri, 27 Nov 2009 15:24:09 +0000 Subject: [PATCH] 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. --- clutter/cogl/cogl/cogl-primitives.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/cogl/cogl/cogl-primitives.c b/clutter/cogl/cogl/cogl-primitives.c index b68c7e4d8..63bd382c6 100644 --- a/clutter/cogl/cogl/cogl-primitives.c +++ b/clutter/cogl/cogl/cogl-primitives.c @@ -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;