diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2012-12-16 19:02:32 +0200 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2012-12-28 18:59:06 +0200 |
commit | fb1109b4bdec040dab5cdb00a342557b977e9c12 (patch) | |
tree | 3d045fd10cca57a733e9fd3fa3c4b2f34389745f /libass/ass_bitmap.h | |
parent | 62275969552280956d6555f89b9a46427868d6ac (diff) | |
download | libass-fb1109b4bdec040dab5cdb00a342557b977e9c12.tar.bz2 libass-fb1109b4bdec040dab5cdb00a342557b977e9c12.tar.xz |
Properly render opaque box shadows even when there is no border
Even if the border size is zero, the shadow is supposed to be
a copy of a hypothetical border: when border_style is 1, this
coincides with the borderless glyph, but when border_style is 3,
the shadow must be an opaque box.
Opaque box borders are now generated regardless of border size
being non-zero, and outline_to_bitmap3 gets a new flag indicating
whether it should discard the border (after generating a shadow
from it).
Diffstat (limited to 'libass/ass_bitmap.h')
-rw-r--r-- | libass/ass_bitmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libass/ass_bitmap.h b/libass/ass_bitmap.h index 2a46aec4..53be7af1 100644 --- a/libass/ass_bitmap.h +++ b/libass/ass_bitmap.h @@ -46,12 +46,13 @@ Bitmap *outline_to_bitmap(ASS_Library *library, FT_Library ftlib, * \param bm_o out: pointer to the bitmap of outline (border) glyph is returned here * \param bm_g out: pointer to the bitmap of glyph shadow is returned here * \param be 1 = produces blurred bitmaps, 0 = normal bitmaps + * \param border_visible whether border is visible if border_style is 3 */ int outline_to_bitmap3(ASS_Library *library, ASS_SynthPriv *priv_blur, FT_Library ftlib, FT_Outline *outline, FT_Outline *border, Bitmap **bm_g, Bitmap **bm_o, Bitmap **bm_s, int be, double blur_radius, FT_Vector shadow_offset, - int border_style); + int border_style, int border_visible); void ass_free_bitmap(Bitmap *bm); |