static int SWFShape_addLineStyle(SWFShape shape, unsigned short width, byte r, byte g, byte b, byte a) { growLineArray(shape); shape->lines[shape->nLines] = newSWFLineStyle(width, r, g, b, a); return ++shape->nLines; }
static int SWFShape_addLineStyle(SWFShape shape, unsigned short width, byte r, byte g, byte b, byte a) { if ( *shape->nLines % STYLE_INCREMENT == 0 ) { *shape->lines = (SWFLineStyle*)realloc(*shape->lines, (*shape->nLines+STYLE_INCREMENT) * sizeof(SWFLineStyle)); } (*shape->lines)[*shape->nLines] = newSWFLineStyle(width, r, g, b, a); return ++(*shape->nLines); }