b_y1 = bm->h;
tmp = dst_x - clip_x0;
- if (tmp < 0) {
+ if (tmp < 0)
b_x0 = -tmp;
- render_priv->state.has_clips = 1;
- }
tmp = dst_y - clip_y0;
- if (tmp < 0) {
+ if (tmp < 0)
b_y0 = -tmp;
- render_priv->state.has_clips = 1;
- }
tmp = clip_x1 - dst_x - bm->w;
- if (tmp < 0) {
+ if (tmp < 0)
b_x1 = bm->w + tmp;
- render_priv->state.has_clips = 1;
- }
tmp = clip_y1 - dst_y - bm->h;
- if (tmp < 0) {
+ if (tmp < 0)
b_y1 = bm->h + tmp;
- render_priv->state.has_clips = 1;
- }
if ((b_y0 >= b_y1) || (b_x0 >= b_x1))
return tail;
int aleft, atop, bleft, btop;
unsigned char *abuffer, *bbuffer, *nbuffer;
- render_priv->state.has_clips = 1;
-
abuffer = cur->bitmap;
bbuffer = clip_bm->buffer;
ax = cur->dst_x;
{
render_priv->state.event = event;
render_priv->state.parsed_tags = 0;
- render_priv->state.has_clips = 0;
render_priv->state.evt_type = EVENT_NORMAL;
reset_render_context(render_priv, NULL);
ASS_Image *img, *img2;
int diff;
- if (priv->state.has_clips)
- return 2;
-
img = priv->prev_images_root;
img2 = priv->images_root;
diff = 0;