diff --git a/libvo/mga_common.c b/libvo/mga_common.c index 9e08fcdf74..6bfbd3de8a 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -43,13 +43,7 @@ draw_slice_g200(uint8_t *image[], int stride[], int width,int height,int x,int y bespitch = (mga_vid_config.src_width + 31) & ~31; dest = vid_data + bespitch*y + x; - src = image[0]; - for(h=0; h < height; h++) - { - memcpy(dest, src, width); - src += stride[0]; - dest += bespitch; - } + mem2agpcpy_pic(dest, image[0], width, height, bespitch, stride[0]); width/=2;height/=2;x/=2;y/=2; @@ -121,38 +115,32 @@ draw_slice_g400(uint8_t *image[], int stride[], int w,int h,int x,int y) bespitch2 = bespitch/2; dest = vid_data + bespitch * y + x; - src = image[0]; - for(i=0;i