diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-05-16 17:30:25 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2009-05-16 17:30:25 +0000 |
commit | 7a2fb9222a3dd19a1ef7eaf70938806a1be753ee (patch) | |
tree | 836aef757ad68536dfe3aa6701fbb1b708dbbc18 /amiga/bitmap.c | |
parent | 08d0c1682250763c0f8300e54bfa877345edd5fb (diff) | |
download | netsurf-7a2fb9222a3dd19a1ef7eaf70938806a1be753ee.tar.gz netsurf-7a2fb9222a3dd19a1ef7eaf70938806a1be753ee.tar.bz2 |
IFF save now works - needed an unexpected NULL as the first parameter to DTM_WRITE
DTA_ObjName is now the URL, as this is the only field that is being written by
picture.datatype (bug in picture.datatype?). ObjAuthor and ObjAnnotation left in as
the DTM_COPY method might be able to use them.
svn path=/trunk/netsurf/; revision=7518
Diffstat (limited to 'amiga/bitmap.c')
-rw-r--r-- | amiga/bitmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c index 50627155f..4cbfe90ac 100644 --- a/amiga/bitmap.c +++ b/amiga/bitmap.c @@ -135,7 +135,7 @@ bool bitmap_save(void *bitmap, const char *path, unsigned flags) { if(fh = Open(path,MODE_NEWFILE)) { - DoDTMethod(dto,NULL,NULL,DTM_WRITE,fh,0,NULL); + DoDTMethod(dto,NULL,NULL,DTM_WRITE,NULL,fh,DTWM_IFF,NULL); Close(fh); } @@ -286,8 +286,8 @@ Object *ami_datatype_object_from_bitmap(struct bitmap *bitmap) } SetDTAttrs(dto,NULL,NULL, - DTA_ObjName,bitmap->title, - DTA_ObjAnnotation,bitmap->url, + DTA_ObjName,bitmap->url, + DTA_ObjAnnotation,bitmap->title, DTA_ObjAuthor,messages_get("NetSurf"), DTA_NominalHoriz,bitmap_get_width(bitmap), DTA_NominalVert,bitmap_get_height(bitmap), |