changeset 29360:cac9b1442efe

Use memcpy_pic2 instead of reimplementing it.
author reimar
date Fri, 26 Jun 2009 16:20:15 +0000
parents 49f3eca2389b
children 94d2be22a185
files libvo/vo_fbdev.c
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev.c	Fri Jun 26 15:41:34 2009 +0000
+++ b/libvo/vo_fbdev.c	Fri Jun 26 16:20:15 2009 +0000
@@ -1011,17 +1011,11 @@
 
 static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y)
 {
-    uint8_t *d, *s;
+    uint8_t *d;
 
     d = center + fb_line_len * y + fb_pixel_size * x;
 
-    s = src[0];
-    while (h) {
-        fast_memcpy(d, s, w * fb_pixel_size);
-        d += fb_line_len;
-        s += stride[0];
-        h--;
-    }
+    memcpy_pic2(d, src[0], w * fb_pixel_size, h, fb_line_len, stride[0], 1);
 
     return 0;
 }