Skip to content

Commit

Permalink
Fix code path of rasterization through FreeType
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSmile committed Jul 1, 2015
1 parent 1f602f3 commit c7bfc62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libass/ass_bitmap.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c7bfc62

Please sign in to comment.