Commit 4503dad7 authored by Michael Natterer's avatar Michael Natterer 😴

app: also, it's not the number of pixels but the number of components, sigh

parent ebbcadda
......@@ -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,
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment