Commit c77e0c21 authored by Marton Balint's avatar Marton Balint

libzvbi-teletextdec: add chopped top row size to y offset

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 249a4359
...@@ -255,7 +255,7 @@ static int gen_sub_bitmap(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_pa ...@@ -255,7 +255,7 @@ static int gen_sub_bitmap(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_pa
fix_transparency(ctx, sub_rect, page, chop_top, cmax, resx, resy); fix_transparency(ctx, sub_rect, page, chop_top, cmax, resx, resy);
sub_rect->x = ctx->x_offset; sub_rect->x = ctx->x_offset;
sub_rect->y = ctx->y_offset; sub_rect->y = ctx->y_offset + chop_top * BITMAP_CHAR_HEIGHT;
sub_rect->w = resx; sub_rect->w = resx;
sub_rect->h = resy; sub_rect->h = resy;
sub_rect->nb_colors = (int)cmax + 1; sub_rect->nb_colors = (int)cmax + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment