[MPlayer-cvslog] CVS: main/libvo vo_fbdev.c,1.95,1.96

Alan Curry CVS syncmail at mplayerhq.hu
Mon Mar 20 23:24:16 CET 2006


CVS change done by Alan Curry CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv8890/libvo

Modified Files:
	vo_fbdev.c 
Log Message:
Don't multiply fb_line_len by fb_pixel_size. Fixes too-low placement of OSD


Index: vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- vo_fbdev.c	20 Mar 2006 22:07:30 -0000	1.95
+++ vo_fbdev.c	20 Mar 2006 22:24:14 -0000	1.96
@@ -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) {




More information about the MPlayer-cvslog mailing list