changeset 231:0e430b433f63

small fix
author szabii
date Wed, 28 Mar 2001 18:07:24 +0000
parents 2605bca34a96
children 6ec35ac3c74c
files libvo/vo_fbdev.c
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev.c	Wed Mar 28 18:01:16 2001 +0000
+++ b/libvo/vo_fbdev.c	Wed Mar 28 18:07:24 2001 +0000
@@ -276,14 +276,7 @@
 				in_height, in_width * (fb_bpp / 8),
 				in_width, in_width / 2);
 	} else if ((pixel_format & IMGFMT_BGR_MASK) == IMGFMT_BGR) {
-		int i;
-		uint8_t *dst = next_frame;
-		uint8_t *s = src[0];
-		for (i = 0; i < in_height; i++) {
-			memcpy(dst, s, in_width * (fb_bpp / 8));
-			dst += in_width * (fb_bpp / 8);
-			s += in_width * (fb_bpp / 8);
-		}
+		memcpy(next_frame, src[0], in_width * in_height * (fb_bpp / 8));
 	} else if ((pixel_format & IMGFMT_RGB_MASK) == IMGFMT_RGB) {
 	}
 	return 0;