Commit f19f4389 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

applied patch from Chuck Mason <chuckjr@unbounded.com> that fixes wrong

2001-02-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/header.c: applied patch from Chuck Mason
	<chuckjr@unbounded.com> that fixes wrong output of header plug-in.
parent 8e3259d0
2001-02-27 Sven Neumann <sven@gimp.org>
* plug-ins/common/header.c: applied patch from Chuck Mason
<chuckjr@unbounded.com> that fixes wrong output of header plug-in.
2001-02-27 Michael Natterer <mitch@gimp.org>
* app/apptypes.h
......
......@@ -181,7 +181,7 @@ save_image (gchar *filename,
switch (drawable_type)
{
case GIMP_RGB_IMAGE:
fprintf (fp, "#define HEADER_PIXEL(data,pixel) {\\\n pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \\\n pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \\\n pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \\\n data += 4;\n}\n");
fprintf (fp, "#define HEADER_PIXEL(data,pixel) {\\\n pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \\\n pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \\\n pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \\\n data += 4; \\\n}\n");
fprintf (fp, "static char *header_data =\n\t\"");
data = g_new (guchar, drawable->width * drawable->bpp);
......
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