mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
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
This commit is contained in:
parent
08d0c16822
commit
7a2fb9222a
@ -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),
|
||||
|
@ -31,16 +31,7 @@
|
||||
#include <proto/datatypes.h>
|
||||
#include "amiga/bitmap.h"
|
||||
|
||||
#ifndef ID_AUTH
|
||||
#define ID_AUTH MAKE_ID('A','U','T','H')
|
||||
#endif
|
||||
|
||||
#ifndef ID_ANNO
|
||||
#define ID_ANNO MAKE_ID('A','N','N','O')
|
||||
#endif
|
||||
|
||||
struct IFFHandle *iffh = NULL;
|
||||
const char * const netsurf_version;
|
||||
|
||||
void ami_clipboard_init(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user