From 84b14ca69ea02b84a263e7fb046842ec999b50cb Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Thu, 1 May 2014 02:38:33 +0100 Subject: Reset clipping mode on every rectangle \clip Prior to this fix, both of the following: \iclip(0,0,9999,9999)\clip(0,0,9999,9999) \iclip(0,0,0,0)\clip(0,0,9999,9999) hid the whole picture in libass. The correct behavior in both cases is to display the whole picture. --- libass/ass_parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libass/ass_parse.c b/libass/ass_parse.c index b8c2547..61479e7 100644 --- a/libass/ass_parse.c +++ b/libass/ass_parse.c @@ -663,6 +663,7 @@ char *parse_tag(ASS_Renderer *render_priv, char *p, double pwr) render_priv->state.clip_y0 * (1 - pwr) + y0 * pwr; render_priv->state.clip_y1 = render_priv->state.clip_y1 * (1 - pwr) + y1 * pwr; + render_priv->state.clip_mode = 0; // Might be a vector clip } else if (!render_priv->state.clip_drawing) { p = parse_vector_clip(render_priv, start); -- cgit v1.2.3