return chr;
}
-// Return 1 if the event contains tags that will put the renderer into the
-// EVENT_POSITIONED state. Return 0 otherwise.
-int event_is_positioned(char *str)
+// Return 1 if the event contains tags that will apply overrides the selective
+// style override code should not touch. Return 0 otherwise.
+int event_has_hard_overrides(char *str)
{
// look for \pos and \move tags inside {...}
// mirrors get_next_char, but is faster and doesn't change any global state
while (*str && *str != '}') {
if (*str == '\\') {
char *p = str + 1;
- if (mystrcmp(&p, "pos") || mystrcmp(&p, "move"))
+ if (mystrcmp(&p, "pos") || mystrcmp(&p, "move") ||
+ mystrcmp(&p, "clip") || mystrcmp(&p, "iclip") ||
+ mystrcmp(&p, "org") || mystrcmp(&p, "pbo") ||
+ mystrcmp(&p, "p"))
return 1;
}
str++;
void process_karaoke_effects(ASS_Renderer *render_priv);
unsigned get_next_char(ASS_Renderer *render_priv, char **str);
char *parse_tag(ASS_Renderer *render_priv, char *p, char *end, double pwr);
-int event_is_positioned(char *str);
+int event_has_hard_overrides(char *str);
extern void change_alpha(uint32_t *var, uint32_t new, double pwr);
extern uint32_t mult_alpha(uint32_t a, uint32_t b);
// The user style was set with ass_set_selective_style_override().
ASS_Style *user = &render_priv->user_override_style;
ASS_Style *new = &render_priv->state.override_style_temp_storage;
- int explicit = event_is_positioned(render_priv->state.event->Text);
+ int explicit = event_has_hard_overrides(render_priv->state.event->Text);
int requested = render_priv->settings.selective_style_overrides;
double scale;