# HG changeset patch # User arpi # Date 1015429734 0 # Node ID 48bfd1d278d1f19fbb92948f4c01ab181f45238e # Parent 869e5bff8dab6ce89ab15d7b3e37b77998389e14 using mem2agpcpy_pic() diff -r 869e5bff8dab -r 48bfd1d278d1 libvo/mga_common.c --- a/libvo/mga_common.c Wed Mar 06 15:25:10 2002 +0000 +++ b/libvo/mga_common.c Wed Mar 06 15:48:54 2002 +0000 @@ -43,13 +43,7 @@ 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 @@ bespitch2 = bespitch/2; dest = vid_data + bespitch * y + x; - src = image[0]; - for(i=0;i