summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-09-01 02:22:44 +0200
committerGrigori Goronzy <greg@blackbox>2009-09-01 02:22:44 +0200
commit8407e392667a2f37eaca4fabfcf6bd7ca42aaed5 (patch)
tree1b41b6085936db8e2528a38fa64eb5c9d385b747
parenta69a6eca41f633bad80cbaf6488788fda9ec5c82 (diff)
downloadlibass-8407e392667a2f37eaca4fabfcf6bd7ca42aaed5.tar.bz2
libass-8407e392667a2f37eaca4fabfcf6bd7ca42aaed5.tar.xz
Revert "Merge glyph and outline bitmap better"
This reverts commit d3cd5b0148d64ae0f6e288e69b09acfe639fdcce. This hack improved blending in few situations, but at the same time broke it in lots o others; get rid of it.
-rw-r--r--libass/ass_bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c
index faddcf3..e2018ce 100644
--- a/libass/ass_bitmap.c
+++ b/libass/ass_bitmap.c
@@ -261,7 +261,7 @@ static Bitmap *fix_outline_and_shadow(Bitmap *bm_g, Bitmap *bm_o)
unsigned char c_g, c_o;
c_g = g[x];
c_o = o[x];
- o[x] = (c_o > (3 * c_g) / 5) ? c_o - (3 * c_g) / 5 : 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;