summaryrefslogtreecommitdiff
path: root/amiga/iff_dr2d.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-10-12 13:11:13 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-10-12 13:11:13 +0100
commitade86e496ea4bc27b6edab125bad9f5dc4bb3852 (patch)
tree81aae5427d06ae06be2968df5d025780206bf682 /amiga/iff_dr2d.c
parent6ea52d0d9f423a13acc7c7fe015038a15a9636ff (diff)
downloadnetsurf-ade86e496ea4bc27b6edab125bad9f5dc4bb3852.tar.gz
netsurf-ade86e496ea4bc27b6edab125bad9f5dc4bb3852.tar.bz2
Replace AllocVec with AllocVecTags. Remove some instances of MEMF_CLEAR where it is not necessary.
Diffstat (limited to 'amiga/iff_dr2d.c')
-rw-r--r--amiga/iff_dr2d.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/amiga/iff_dr2d.c b/amiga/iff_dr2d.c
index b428ed25f..0638b94a6 100644
--- a/amiga/iff_dr2d.c
+++ b/amiga/iff_dr2d.c
@@ -165,7 +165,7 @@ bool ami_svg_to_dr2d(struct IFFHandle *iffh, const char *buffer,
}
for (i = 0; i != diagram->shape_count; i++) {
- attr = AllocVec(sizeof(struct attr_struct),MEMF_CLEAR | MEMF_PRIVATE);
+ attr = AllocVecTagList(sizeof(struct attr_struct), NULL);
if (diagram->shape[i].fill == svgtiny_TRANSPARENT)
attr->FillType = FT_NONE;
else
@@ -266,13 +266,13 @@ bool ami_svg_to_dr2d(struct IFFHandle *iffh, const char *buffer,
PopChunk(iffh);
}
} else if (diagram->shape[i].text) {
- stxt = AllocVec(sizeof(struct stxt_struct),MEMF_CLEAR);
+ stxt = AllocVecTagList(sizeof(struct stxt_struct), NULL);
stxt->BaseX = diagram->shape[i].text_x;
stxt->BaseY = diagram->shape[i].text_y;
stxt->NumChars = strlen(diagram->shape[i].text);
if(!fons_written)
{
- fons = AllocVec(sizeof(struct fons_struct),MEMF_CLEAR);
+ fons = AllocVecTagList(sizeof(struct fons_struct), NULL);
if(!(PushChunk(iffh,0,ID_FONS,IFFSIZE_UNKNOWN)))
{
WriteChunkBytes(iffh,fons,sizeof(struct fons_struct));
@@ -366,7 +366,7 @@ int main(int argc, char **argv)
{
size = GetFileSize(fh);
- buffer = AllocVec((uint32)size,MEMF_PRIVATE);
+ buffer = AllocVecTagList((uint32)size, NULL);
Read(fh,buffer,(uint32)size);
Close(fh);