changeset 28781:a0fc6ecab7ee

Hack: half-merge glyph border with outline to avoid ugly anti-aliasing in certain situations.
author greg
date Thu, 05 Mar 2009 20:36:35 +0000
parents 0f67e29affb9
children 37c47d68d586
files libass/ass_bitmap.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_bitmap.c	Thu Mar 05 20:25:54 2009 +0000
+++ b/libass/ass_bitmap.c	Thu Mar 05 20:36:35 2009 +0000
@@ -243,7 +243,7 @@
 			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;