changeset 36494:60d86116a5bc

Simplify: use memcpy_pic.
author reimar
date Sat, 18 Jan 2014 11:41:27 +0000
parents 36820f219892
children 211cb1950419
files libvo/vo_bl.c
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_bl.c	Fri Jan 17 15:47:12 2014 +0000
+++ b/libvo/vo_bl.c	Sat Jan 18 11:41:27 2014 +0000
@@ -329,16 +329,9 @@
 
 static int draw_slice(uint8_t *srcimg[], int stride[],
 		int w, int h, int x, int y) {
-	int i;
 	uint8_t *dst = image + y * bl->width + x;
-	uint8_t *src=srcimg[0];
 	// copy Y:
-	for (i = 0; i < h; i++) {
-		fast_memcpy(dst,src,w);
-		dst+=bl->width;
-		src+=stride[0];
-
-	}
+	memcpy_pic(dst, srcimg[0], w, h, bl->width, stride[0]);
  	return 0;
 }