+ if (def->stack)
+ {
+ if (args->last_stack_cdef[0] != 0)
+ {
+ array_append_format (args->calc, "CDEF:cdef_%04i_stack=%s,def_%04i_avg,+",
+ index, args->last_stack_cdef, index);
+ snprintf (draw_def, sizeof (draw_def), "cdef_%04i_stack", index);
+ }
+ else
+ {
+ snprintf (draw_def, sizeof (draw_def), "def_%04i_avg", index);
+ }
+ }
+ else
+ {
+ snprintf (draw_def, sizeof (draw_def), "def_%04i_avg", index);
+ }
+
+ if (def->area)
+ array_prepend_format (args->areas, "AREA:%s#%06"PRIx32,
+ draw_def, fade_color (def->color));
+