[gimp] app: also, it's not the number of pixels but the number of components, sigh
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: also, it's not the number of pixels but the number of components, sigh
- Date: Sun, 1 Oct 2017 15:40:28 +0000 (UTC)
commit 4503dad78c56106ca5baee6ff1cfdb88acbba460
Author: Michael Natterer <mitch gimp org>
Date: Sun Oct 1 17:39:54 2017 +0200
app: also, it's not the number of pixels but the number of components, sigh
app/xcf/xcf-load.c | 4 ++--
app/xcf/xcf-save.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/xcf/xcf-load.c b/app/xcf/xcf-load.c
index c31b987..2a793c2 100644
--- a/app/xcf/xcf-load.c
+++ b/app/xcf/xcf-load.c
@@ -2204,7 +2204,7 @@ xcf_load_tile_rle (XcfInfo *info,
gint n_components = babl_format_get_n_components (format);
xcf_read_from_be (bpp / n_components, tile_data,
- tile_size / bpp);
+ tile_size / bpp * n_components);
}
gegl_buffer_set (buffer, tile_rect, 0, format, tile_data,
@@ -2302,7 +2302,7 @@ xcf_load_tile_zlib (XcfInfo *info,
gint n_components = babl_format_get_n_components (format);
xcf_read_from_be (bpp / n_components, tile_data,
- tile_size / bpp);
+ tile_size / bpp * n_components);
}
gegl_buffer_set (buffer, tile_rect, 0, format, tile_data,
diff --git a/app/xcf/xcf-save.c b/app/xcf/xcf-save.c
index 8e0cfac..c9508df 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -1675,7 +1675,7 @@ xcf_save_tile_rle (XcfInfo *info,
gint n_components = babl_format_get_n_components (format);
xcf_write_to_be (bpp / n_components, tile_data,
- tile_size / bpp);
+ tile_size / bpp * n_components);
}
for (i = 0; i < bpp; i++)
@@ -1811,7 +1811,7 @@ xcf_save_tile_zlib (XcfInfo *info,
gint n_components = babl_format_get_n_components (format);
xcf_write_to_be (bpp / n_components, tile_data,
- tile_size / bpp);
+ tile_size / bpp * n_components);
}
/* allocate deflate state */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]