Browse Source

g2meet: Respect cursor_stride properly everywhere

This fixes a regression with rgb cursors since b1e46988.

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n2.1
Kostya Shishkov Martin Storsjö 12 years ago
parent
commit
4370f65be8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/g2meet.c

+ 3
- 0
libavcodec/g2meet.c View File

@@ -540,6 +540,7 @@ static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c,
bits <<= 1;
}
}
dst += c->cursor_stride - c->cursor_w * 4;
}

dst = c->cursor;
@@ -565,6 +566,7 @@ static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c,
bits <<= 1;
}
}
dst += c->cursor_stride - c->cursor_w * 4;
}
break;
case 32: // full colour
@@ -578,6 +580,7 @@ static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c,
*dst++ = val >> 16;
*dst++ = val >> 24;
}
dst += c->cursor_stride - c->cursor_w * 4;
}
break;
default:


Loading…
Cancel
Save