Skip to content

Commit f037ed9

Browse files
arch1t3chtmojie126
authored andcommitted
Do not scale \blur and \be when resampling
Resampling changes the PlayRes, not the LayoutRes, and \blur scales with the LayoutRes. (\be currently does not scale with *either* resolution, but libass maintainers promise that *if* it ever scales with any resolution it will scale with LayoutRes. Either way, it's not correct to scale it with PlayRes.)
1 parent 45e3f43 commit f037ed9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ass_override.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ static void load_protos() {
281281
proto[++i].Set("\\fe", VariableDataType::TEXT); // \fe<charset>
282282
proto[++i].Set("\\ko", VariableDataType::INT, AssParameterClass::KARAOKE); // \ko<duration>
283283
proto[++i].Set("\\kf", VariableDataType::INT, AssParameterClass::KARAOKE); // \kf<duration>
284-
proto[++i].Set("\\be", VariableDataType::INT, AssParameterClass::ABSOLUTE_SIZE_XY); // \be<strength>
285-
proto[++i].Set("\\blur", VariableDataType::FLOAT, AssParameterClass::ABSOLUTE_SIZE_XY); // \blur<strength>
284+
proto[++i].Set("\\be", VariableDataType::INT); // \be<strength>
285+
proto[++i].Set("\\blur", VariableDataType::FLOAT); // \blur<strength>
286286
proto[++i].Set("\\fn", VariableDataType::TEXT); // \fn<name>
287287
proto[++i].Set("\\fs+", VariableDataType::FLOAT); // \fs+<size>
288288
proto[++i].Set("\\fs-", VariableDataType::FLOAT); // \fs-<size>

0 commit comments

Comments
 (0)