changeset 17901:51571591d56f

Don't multiply fb_line_len by fb_pixel_size. Fixes too-low placement of OSD
author pacman
date Mon, 20 Mar 2006 22:24:14 +0000
parents 5075cd9bb631
children 578074a74d4e
files libvo/vo_fbdev.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev.c	Mon Mar 20 22:07:30 2006 +0000
+++ b/libvo/vo_fbdev.c	Mon Mar 20 22:24:14 2006 +0000
@@ -1058,7 +1058,7 @@
 {
 	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 @@
 	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) {