summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorpacman <pacman@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-20 22:24:14 +0000
committerpacman <pacman@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-20 22:24:14 +0000
commit2857c2e4d4a24c10406c80d1c8740abc5644aa2f (patch)
tree83367eeb30dbb6a2ce402a7103923f22f6a1fdb7 /libvo
parent6a6fec365625fb32542512d58e7f0740de861dff (diff)
downloadmpv-2857c2e4d4a24c10406c80d1c8740abc5644aa2f.tar.bz2
mpv-2857c2e4d4a24c10406c80d1c8740abc5644aa2f.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_fbdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c
index 8569b34d89..d4ed626d8d 100644
--- a/libvo/vo_fbdev.c
+++ b/libvo/vo_fbdev.c
@@ -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) {