[gimp] file-fits: fix image compositing with high bit depths
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-fits: fix image compositing with high bit depths
- Date: Fri, 29 Mar 2013 12:15:49 +0000 (UTC)
commit 8fdfd5690430cda6e8855d28b50b3e46dc36b32f
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]