[MPlayer-cvslog] r19923 - trunk/libass/ass_render.c
eugeni
subversion at mplayerhq.hu
Thu Sep 21 21:31:32 CEST 2006
Author: eugeni
Date: Thu Sep 21 21:31:28 2006
New Revision: 19923
Modified:
trunk/libass/ass_render.c
Log:
In r19831, font size multiplier was mistakenly applied to border width.
Fixed.
Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c (original)
+++ trunk/libass/ass_render.c Thu Sep 21 21:31:28 2006
@@ -142,6 +142,7 @@
long long time; // frame's timestamp, ms
double font_scale;
double font_scale_x; // x scale applied to all glyphs to preserve text aspect ratio
+ double border_scale;
} frame_context_t;
static ass_instance_t* ass_instance;
@@ -599,7 +600,7 @@
}
render_context.border = border;
- b = 64 * border * frame_context.font_scale;
+ b = 64 * border * frame_context.border_scale;
if (b > 0)
FT_Stroker_Set( render_context.stroker, b,
FT_STROKER_LINECAP_ROUND,
@@ -1885,6 +1886,7 @@
frame_context.font_scale = global_settings->font_size_coeff * ass_internal_font_size_coeff *
frame_context.orig_height / frame_context.track->PlayResY;
+ frame_context.border_scale = ((double)frame_context.orig_height) / frame_context.track->PlayResY;
if (frame_context.width * track->PlayResY == frame_context.height * track->PlayResX)
frame_context.font_scale_x = 1.;
More information about the MPlayer-cvslog
mailing list