[gimp/soc-2011-seamless-clone2] file-fits: fix image compositing with high bit depths



commit d05e163a8db8d19812c4f0ee1ba459a6339d6e7f
Author: Michael Henning <drawoc darkrefraction com>
Date:   Thu Mar 28 19:45:29 2013 -0400

    file-fits: fix image compositing with high bit depths

 plug-ins/file-fits/fits.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/file-fits/fits.c b/plug-ins/file-fits/fits.c
index 8174285..3f063d7 100644
--- a/plug-ins/file-fits/fits.c
+++ b/plug-ins/file-fits/fits.c
@@ -723,7 +723,6 @@ load_fits (const gchar *filename,
             break;
         }
     }
-  /* XXX: Needs to be ported to high bit depths */
   else   /* multiple images to compose */
     {
       gint channel;
@@ -734,7 +733,7 @@ load_fits (const gchar *filename,
 
       for (channel = 0; channel < ncompose; channel++)
         {
-          dest = data + tile_height * width * hdulist->bpp * ncompose + channel;
+          dest = data + tile_height * width * hdulist->bpp * ncompose + channel * hdulist->bpp;
           scan_lines = 0;
 
           for (i = 0; i < height; i++)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]