>From 536c78570fed3caf2f5800f2f98484e0a82c344f Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 18 Feb 2009 02:20:39 +0100 Subject: [PATCH 05/12] Hack: use a compromise to force somewhat reasonable border<->glyph rendering. --- libass/ass_bitmap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c index 9ccb1ba..463bb7d 100644 --- a/libass/ass_bitmap.c +++ b/libass/ass_bitmap.c @@ -242,7 +242,7 @@ static bitmap_t* fix_outline_and_shadow(bitmap_t* bm_g, bitmap_t* bm_o) unsigned char c_g, c_o; c_g = g[x]; c_o = o[x]; - o[x] = (c_o > c_g) ? c_o : 0; + o[x] = (c_o > c_g) ? c_o - (c_g/2) : 0; s[x] = (c_o < 0xFF - c_g) ? c_o + c_g : 0xFF; } g += bm_g->w; -- 1.5.4.3