summaryrefslogtreecommitdiff
path: root/src/base/ftgloadr.c
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2004-01-15 19:07:44 +0000
committerDavid Turner <david@freetype.org>2004-01-15 19:07:44 +0000
commit4632fccb1b44bef8b3c593a646bd8d50089880dc (patch)
tree289fda9d23179a17c60d81bc7ab331c6051881f7 /src/base/ftgloadr.c
parentedeed6b391a6158eb1948efc28a19694272b580e (diff)
downloadfreetype2-4632fccb1b44bef8b3c593a646bd8d50089880dc.tar.gz
* include/freetype/internal/ftmemory.h,
src/autohint/ahhint.c, src/base/ftgloadr.c, src/base/ftglyph.c, src/base/ftoutln.c, src/base/ftstroke.c, src/cff/cffload.c, src/truetype/ttgload.c, src/truetype/ttinterp.c: introducing the new FT_ARRAY_COPY and FT_ARRAY_MOVE macros to make copying arrays easier
Diffstat (limited to 'src/base/ftgloadr.c')
-rw-r--r--src/base/ftgloadr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/base/ftgloadr.c b/src/base/ftgloadr.c
index f4e8a292f..9ee684eda 100644
--- a/src/base/ftgloadr.c
+++ b/src/base/ftgloadr.c
@@ -337,17 +337,17 @@
FT_Outline* in = &source->base.outline;
- FT_MEM_COPY( out->points, in->points,
- num_points * sizeof ( FT_Vector ) );
- FT_MEM_COPY( out->tags, in->tags,
- num_points * sizeof ( char ) );
- FT_MEM_COPY( out->contours, in->contours,
- num_contours * sizeof ( short ) );
+ FT_ARRAY_COPY( out->points, in->points,
+ num_points );
+ FT_ARRAY_COPY( out->tags, in->tags,
+ num_points );
+ FT_ARRAY_COPY( out->contours, in->contours,
+ num_contours );
/* do we need to copy the extra points? */
if ( target->use_extra && source->use_extra )
- FT_MEM_COPY( target->base.extra_points, source->base.extra_points,
- num_points * sizeof ( FT_Vector ) );
+ FT_ARRAY_COPY( target->base.extra_points, source->base.extra_points,
+ num_points );
out->n_points = (short)num_points;
out->n_contours = (short)num_contours;