mirror of https://github.com/odrling/Aegisub
Fix completely incorrect behavior when AR changing is enabled in the resolution resampler
This commit is contained in:
parent
e552dc4c9c
commit
2c2f60d4e0
|
@ -245,9 +245,12 @@ void ResampleResolution(AssFile *ass, ResampleSettings const& settings) {
|
|||
settings.margin,
|
||||
double(settings.script_x) / double(src_x),
|
||||
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));
|
||||
|
||||
ass->SetScriptInfo("PlayResX", wxString::Format("%d", settings.script_x));
|
||||
|
|
Loading…
Reference in New Issue