summaryrefslogtreecommitdiffstats
path: root/libass/ass_font.c
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-25 03:59:58 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-25 14:56:16 +0200
commit311ec23031e257a8edde5153b09a5d0c2d6b0f6b (patch)
tree31b8d7c0dab41fc8b2b8385efb14754c14d16e09 /libass/ass_font.c
parenta9f204bdde79bdacb63672482f5666b1e64f4479 (diff)
downloadlibass-311ec23031e257a8edde5153b09a5d0c2d6b0f6b.tar.bz2
libass-311ec23031e257a8edde5153b09a5d0c2d6b0f6b.tar.xz
Remove shift vector in ass_render_event
The shift is not calculated when fetching a glyph anymore. Instead, it is calculated right before rasterizing a glyph. Remove the shift vector and make get_outline_glyph, the glyph cache and ass_font_set_transform work without supplying a shift vector.
Diffstat (limited to 'libass/ass_font.c')
-rw-r--r--libass/ass_font.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libass/ass_font.c b/libass/ass_font.c
index 9518b70..3502ef7 100644
--- a/libass/ass_font.c
+++ b/libass/ass_font.c
@@ -208,8 +208,10 @@ void ass_font_set_transform(ass_font_t *font, double scale_x,
{
font->scale_x = scale_x;
font->scale_y = scale_y;
- font->v.x = v->x;
- font->v.y = v->y;
+ if (v) {
+ font->v.x = v->x;
+ font->v.y = v->y;
+ }
update_transform(font);
}