mirror of https://github.com/odrling/Aegisub
Apply a fix from greg:
* 'Correctly' handle font aspect ratio in the case of PlayRes(X|Y) not matching the video aspect ratio. (to match vsfilter) Originally committed to SVN as r2734.
This commit is contained in:
parent
cf936f5e12
commit
83bf4c7512
|
@ -2362,11 +2362,8 @@ static int ass_start_frame(ass_renderer_t *priv, ass_track_t* track, long long n
|
|||
frame_context.orig_height / frame_context.track->PlayResY;
|
||||
frame_context.border_scale = ((double)frame_context.orig_height) / frame_context.track->PlayResY;
|
||||
|
||||
if (frame_context.orig_width * track->PlayResY == frame_context.orig_height * track->PlayResX)
|
||||
frame_context.font_scale_x = 1.;
|
||||
else
|
||||
frame_context.font_scale_x = ((double)(frame_context.orig_width * track->PlayResY)) / (frame_context.orig_height * track->PlayResX);
|
||||
|
||||
frame_context.font_scale_x = ((double)(frame_context.orig_width * track->PlayResY)) / (frame_context.orig_height * track->PlayResX);
|
||||
frame_context.font_scale_x = 1.0;
|
||||
priv->prev_images_root = priv->images_root;
|
||||
priv->images_root = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue