[MPlayer-cvslog] r28816 - trunk/libass/ass_bitmap.c
greg
subversion at mplayerhq.hu
Thu Mar 5 21:36:35 CET 2009
Author: greg
Date: Thu Mar 5 21:36:35 2009
New Revision: 28816
Log:
Hack: half-merge glyph border with outline to avoid ugly anti-aliasing
in certain situations.
Modified:
trunk/libass/ass_bitmap.c
Modified: trunk/libass/ass_bitmap.c
==============================================================================
--- trunk/libass/ass_bitmap.c Thu Mar 5 21:25:54 2009 (r28815)
+++ trunk/libass/ass_bitmap.c Thu Mar 5 21:36:35 2009 (r28816)
@@ -243,7 +243,7 @@ static bitmap_t* fix_outline_and_shadow(
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;
More information about the MPlayer-cvslog
mailing list