diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2014-01-29 20:54:45 +0000 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2014-01-29 21:27:17 +0000 |
commit | 7514642f2575fd58c4f4809d74a0099f22d256f0 (patch) | |
tree | a2dfcf6e3f70a48c07e7f443f14a773e70d0eb54 /libass/ass_render.c | |
parent | 678a46dfc18ccadedf79a6da8104a84d2bd9dbf7 (diff) | |
download | libass-7514642f2575fd58c4f4809d74a0099f22d256f0.tar.bz2 libass-7514642f2575fd58c4f4809d74a0099f22d256f0.tar.xz |
Fix subpixel jumping of rotated glyph runs
Rotation origin was not taken into account
when caching glyph run bitmaps.
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r-- | libass/ass_render.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index d299f1b..e629fdd 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1020,6 +1020,8 @@ static void fill_composite_hash(CompositeHashKey *hk, CombinedBitmapInfo *info) hk->frz = info->frz; hk->fax = info->fax; hk->fay = info->fay; + hk->shift_x = info->shift_x; + hk->shift_y = info->shift_y; hk->advance = info->advance; } @@ -2334,7 +2336,9 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event, current_info->bold = info->bold; current_info->flags = info->flags; - current_info->advance = info->hash_key.u.outline.advance; + current_info->shift_x = key->shift_x; + current_info->shift_y = key->shift_y; + current_info->advance = key->advance; current_info->has_border = !!info->border; |