From a91cda72abdfc5e401510474c59dd14026e8b6cb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 28 Oct 2018 15:12:05 -0700 Subject: [PATCH] [sbix] Remove redundant parameter --- src/hb-ot-color-sbix-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh index f6b198ffc..fc199da88 100644 --- a/src/hb-ot-color-sbix-table.hh +++ b/src/hb-ot-color-sbix-table.hh @@ -82,12 +82,12 @@ struct SBIXStrike inline hb_blob_t *get_glyph_blob (unsigned int glyph_id, hb_blob_t *sbix_blob, - unsigned int sbix_len, int *x_offset, int *y_offset, hb_tag_t file_type, unsigned int num_glyphs) const { + unsigned int sbix_len = sbix_blob->length; unsigned int strike_offset = (const char *) this - (const char *) sbix_blob->data; if (imageOffsetsZ[glyph_id + 1] - imageOffsetsZ[glyph_id] == 0) return hb_blob_get_empty (); @@ -185,7 +185,7 @@ struct sbix int *x_offset, int *y_offset) const { - return get_strike (font).get_glyph_blob (glyph_id, sbix_blob, sbix_len, + return get_strike (font).get_glyph_blob (glyph_id, sbix_blob, x_offset, y_offset, HB_TAG ('p','n','g',' '), num_glyphs);