comparison libass/ass_bitmap.c @ 28714:aa85da6fb408

Stronger blur. Patch by Grigori G (greg chown ath cx).
author eugeni
date Fri, 27 Feb 2009 23:06:37 +0000
parents 12e936031c36
children d609e9b8732d
comparison
equal deleted inserted replaced
28713:e758bf5350ee 28714:aa85da6fb408
257 int glyph_to_bitmap(ass_synth_priv_t* priv, ass_synth_priv_t* priv_blur, 257 int glyph_to_bitmap(ass_synth_priv_t* priv, ass_synth_priv_t* priv_blur,
258 FT_Glyph glyph, FT_Glyph outline_glyph, bitmap_t** bm_g, 258 FT_Glyph glyph, FT_Glyph outline_glyph, bitmap_t** bm_g,
259 bitmap_t** bm_o, bitmap_t** bm_s, int be, double blur_radius) 259 bitmap_t** bm_o, bitmap_t** bm_s, int be, double blur_radius)
260 { 260 {
261 int bord = be ? (be+1) : 0; 261 int bord = be ? (be+1) : 0;
262 blur_radius *= 2;
262 bord = (blur_radius > 0.0) ? blur_radius : bord; 263 bord = (blur_radius > 0.0) ? blur_radius : bord;
263 264
264 assert(bm_g && bm_o && bm_s); 265 assert(bm_g && bm_o && bm_s);
265 266
266 *bm_g = *bm_o = *bm_s = 0; 267 *bm_g = *bm_o = *bm_s = 0;