mirror of https://github.com/mpv-player/mpv
Don't multiply fb_line_len by fb_pixel_size. Fixes too-low placement of OSD
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17902 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6a6fec3656
commit
2857c2e4d4
|
@ -1058,7 +1058,7 @@ static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src,
|
|||
{
|
||||
unsigned char *dst;
|
||||
|
||||
dst = center + (fb_line_len * y0 + x0) * fb_pixel_size;
|
||||
dst = center + fb_line_len * y0 + fb_pixel_size * x0;
|
||||
|
||||
(*draw_alpha_p)(w, h, src, srca, stride, dst, fb_line_len);
|
||||
}
|
||||
|
@ -1071,7 +1071,7 @@ static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x,
|
|||
uint8_t *d;
|
||||
uint8_t *s;
|
||||
|
||||
d = center + (fb_line_len * y + x) * fb_pixel_size;
|
||||
d = center + fb_line_len * y + fb_pixel_size * x;
|
||||
|
||||
s = src[0];
|
||||
while (h) {
|
||||
|
|
Loading…
Reference in New Issue