diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2014-05-01 02:38:33 +0100 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2014-05-12 02:24:07 +0100 |
commit | 84b14ca69ea02b84a263e7fb046842ec999b50cb (patch) | |
tree | 006d8262f28fdce86be0d4b2dd4c1be95b5ed75b | |
parent | b3c2b31e71b5d4e64954146658ef58be7d459e19 (diff) | |
download | libass-84b14ca69ea02b84a263e7fb046842ec999b50cb.tar.bz2 libass-84b14ca69ea02b84a263e7fb046842ec999b50cb.tar.xz |
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.
-rw-r--r-- | libass/ass_parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |