From: Matthias Kramm Date: Fri, 9 Apr 2010 23:53:51 +0000 (-0700) Subject: added workaround for state->last_string assertion problem X-Git-Tag: version-0-9-1~52 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=5112bbb4b5727d38ed2a9d2b63d16867be841934 added workaround for state->last_string assertion problem --- diff --git a/lib/devices/record.c b/lib/devices/record.c index 8f7b40a..fb1c5a9 100644 --- a/lib/devices/record.c +++ b/lib/devices/record.c @@ -592,8 +592,10 @@ static void record_drawchar(struct _gfxdevice*dev, gfxfont_t*font, int glyphnr, char same_matrix = (l->m00 == matrix->m00) && (l->m01 == matrix->m01) && (l->m10 == matrix->m10) && (l->m11 == matrix->m11); char same_color = !memcmp(color, &i->state.last_color[OP_DRAWCHAR], sizeof(gfxcolor_t)); + /* FIXME if(same_font && same_matrix && same_color) flags |= FLAG_SAME_AS_LAST; + */ writer_writeU8(&i->w, OP_DRAWCHAR|flags); writer_writeU32(&i->w, glyphnr);