[MPlayer-cvslog] r22231 - in trunk/libass: ass_render.c	ass_utils.h
    Uoti Urpala 
    uoti.urpala at pp1.inet.fi
       
    Sat Mar  3 07:15:39 CET 2007
    
    
  
On Fri, 2007-02-16 at 18:49 +0100, eugeni wrote:
> -		text_info.glyphs[text_info.length].pos.x = pen.x >> 6;
> -		text_info.glyphs[text_info.length].pos.y = pen.y >> 6;
> +		text_info.glyphs[text_info.length].pos.x = d6_to_int(pen.x);
> +		text_info.glyphs[text_info.length].pos.y = d6_to_int(pen.y);
> +static inline int d6_to_int(int x) {
> +	return (x + 32) >> 6;
> +}
This change caused bad spacing. Changing the earlier lines
                shift.x = pen.x & 63;
                shift.y = pen.y & 63;
to
                shift.x = (pen.x + 32) & 63;
                shift.y = (pen.y + 32) & 63;
seems to fix it.
    
    
More information about the MPlayer-cvslog
mailing list