mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
944423a8d9
commit
120f94d073
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user