diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
commit | b7ebc951da8800f711142f69d9d958bde67a112d (patch) | |
tree | e318514216845acb8f2e49fff7a5cba4027e9d91 /media-gfx/dcraw/files | |
parent | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (diff) |
gentoo resync : 28.04.2019
Diffstat (limited to 'media-gfx/dcraw/files')
-rw-r--r-- | media-gfx/dcraw/files/dcraw-9.28.0-gimp-2.10.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/media-gfx/dcraw/files/dcraw-9.28.0-gimp-2.10.patch b/media-gfx/dcraw/files/dcraw-9.28.0-gimp-2.10.patch new file mode 100644 index 000000000000..f590243a9867 --- /dev/null +++ b/media-gfx/dcraw/files/dcraw-9.28.0-gimp-2.10.patch @@ -0,0 +1,27 @@ +--- a/rawphoto.c.ORIG 2018-05-10 14:06:37.553419235 +0200 ++++ b/rawphoto.c 2018-05-10 14:06:37.553419235 +0200 +@@ -105,8 +105,15 @@ + load_args, + load_return_vals); + ++#if HAVE_GIMP_2_9 ++ gimp_register_magic_load_handler ("file_rawphoto_load", ++ "3fr,arw,bay,bmq,cine,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,ia,jpg,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,pxn,qtk,raf,raw,rdc,rw2,sr2,srf,sti,tif,x3f", ++ "","0,string,II*\\0,0,string,MM\\0*,0,string,<?xml"); ++ gimp_register_file_handler_raw ("file_rawphoto_load"); ++#else + gimp_register_load_handler ("file_rawphoto_load", + "3fr,arw,bay,bmq,cine,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,ia,jpg,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,pxn,qtk,raf,raw,rdc,rw2,sr2,srf,sti,tif,x3f", ""); ++#endif + } + + static void run (RAWPHOTO_CONST gchar *name, +@@ -225,7 +232,7 @@ + layer = gimp_layer_new (image, "Background", width, height, + depth == 3 ? GIMP_RGB_IMAGE : GIMP_GRAY_IMAGE, + 100, GIMP_NORMAL_MODE); +- gimp_image_add_layer (image, layer, 0); ++ gimp_image_insert_layer(image, layer, 0, 0); + + /* Get the drawable and set the pixel region for our load... */ + drawable = gimp_drawable_get (layer); |