forked from mia/Aegisub
Fix completely incorrect behavior when AR changing is enabled in the resolution resampler
This commit is contained in:
parent
e552dc4c9c
commit
2c2f60d4e0
1 changed files with 4 additions and 1 deletions
|
@ -245,9 +245,12 @@ void ResampleResolution(AssFile *ass, ResampleSettings const& settings) {
|
||||||
settings.margin,
|
settings.margin,
|
||||||
double(settings.script_x) / double(src_x),
|
double(settings.script_x) / double(src_x),
|
||||||
double(settings.script_y) / double(src_y),
|
double(settings.script_y) / double(src_y),
|
||||||
settings.change_ar ? state.rx / state.ry : 1.0
|
1.0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (settings.change_ar)
|
||||||
|
state.ar = state.rx / state.ry;
|
||||||
|
|
||||||
for_each(ass->Line.begin(), ass->Line.end(), bind(resample_line, &state, std::tr1::placeholders::_1));
|
for_each(ass->Line.begin(), ass->Line.end(), bind(resample_line, &state, std::tr1::placeholders::_1));
|
||||||
|
|
||||||
ass->SetScriptInfo("PlayResX", wxString::Format("%d", settings.script_x));
|
ass->SetScriptInfo("PlayResX", wxString::Format("%d", settings.script_x));
|
||||||
|
|
Loading…
Reference in a new issue