From: Dr.Smile Date: Wed, 1 Jul 2015 18:21:11 +0000 (+0300) Subject: Fix code path of rasterization through FreeType X-Git-Tag: 0.13.0~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7bfc62080728a5863e600ecc9df614ba28a40cf;p=libass Fix code path of rasterization through FreeType --- diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c index 827c721..c2a7f32 100644 --- a/libass/ass_bitmap.c +++ b/libass/ass_bitmap.c @@ -373,7 +373,7 @@ static Bitmap *outline_to_bitmap_ft(ASS_Renderer *render_priv, FT_Outline_Get_CBox(outline, &bbox); if (bbox.xMin >= bbox.xMax || bbox.yMin >= bbox.yMax) { - bm = alloc_bitmap(2 * bord, 2 * bord); + bm = alloc_bitmap(render_priv->engine, 2 * bord, 2 * bord); if (!bm) return NULL; bm->left = bm->top = -bord; @@ -403,7 +403,7 @@ static Bitmap *outline_to_bitmap_ft(ASS_Renderer *render_priv, } // allocate and set up bitmap - bm = alloc_bitmap(w + 2 * bord, h + 2 * bord); + bm = alloc_bitmap(render_priv->engine, w + 2 * bord, h + 2 * bord); if (!bm) return NULL; bm->left = bbox.xMin - bord;