updated print plugin

stubbed out nonworking frac code

-Yosh
This commit is contained in:
Manish Singh 1998-05-14 00:32:53 +00:00
parent 4578587631
commit d907cd5d97
8 changed files with 74 additions and 22 deletions

View File

@ -1,3 +1,9 @@
Wed May 13 17:31:27 PDT 1998 Manish Singh <yosh@gimp.org>
* app/frac.c: stubbed out nonworking code
* updated print plugin
Wed May 13 00:03:18 MEST 1998 Sven Neumann <sven@gimp.org>
* added nine new scripts from Chris Gutteridge

View File

@ -11,6 +11,34 @@
#include "xcf.h"
#include "frac.h"
#define FRAC_DONT_WORK
#ifdef FRAC_DONT_WORK
void xcf_compress_frac_info (int _layer_type)
{
}
void xcf_save_compress_frac_init (int _dom_density, double quality)
{
}
void xcf_load_compress_frac_init (int _image_scale, int _iterations)
{
}
gint xcf_load_frac_compressed_tile (XcfInfo *info, Tile *tile)
{
return 0;
}
gint xcf_save_frac_compressed_tile (XcfInfo *info, Tile *tile)
{
return 0;
}
#else /* FRAC_DONT_WORK */
#define float double
typedef unsigned char image_data;
@ -1374,3 +1402,5 @@ pete_fatal (char *shoutAtPete)
{
g_error ("Pete, you are a dumbass because %s\n", shoutAtPete);
}
#endif /* FRAC_DONT_WORK */

View File

@ -30,11 +30,12 @@
* Revision History:
*
* $Log$
* Revision 1.7 1998/05/11 19:49:56 neo
* Updated print plug-in to version 2.0
* Revision 1.8 1998/05/14 00:32:46 yosh
* updated print plugin
*
* stubbed out nonworking frac code
*
* --Sven
* -Yosh
*
* Revision 1.10 1998/05/08 21:18:34 mike
* Now enable microweaving in 720 DPI mode.

View File

@ -31,11 +31,12 @@
* Revision History:
*
* $Log$
* Revision 1.7 1998/05/11 19:50:36 neo
* Updated print plug-in to version 2.0
* Revision 1.8 1998/05/14 00:32:48 yosh
* updated print plugin
*
* stubbed out nonworking frac code
*
* --Sven
* -Yosh
*
* Revision 1.10 1998/05/08 21:22:00 mike
* Added quality mode command for DeskJet printers (high quality for 300

View File

@ -32,11 +32,15 @@
* Revision History:
*
* $Log$
* Revision 1.7 1998/05/11 19:51:06 neo
* Updated print plug-in to version 2.0
* Revision 1.8 1998/05/14 00:32:49 yosh
* updated print plugin
*
* stubbed out nonworking frac code
*
* --Sven
* -Yosh
*
* Revision 1.12 1998/05/11 23:56:56 mike
* Removed unused outptr variable.
*
* Revision 1.11 1998/05/08 19:20:50 mike
* Updated to support PPD files, media size, imageable area, and parameter
@ -296,8 +300,7 @@ ps_print(int model, /* I - Model (Level 1 or 2) */
int x, y; /* Looping vars */
GPixelRgn rgn; /* Image region */
guchar *in, /* Input pixels from image */
*out, /* Output pixels for printer */
*outptr; /* Current output pixel */
*out; /* Output pixels for printer */
int page_left, /* Left margin of page */
page_right, /* Right margin of page */
page_top, /* Top of page */

View File

@ -34,11 +34,16 @@
* Revision History:
*
* $Log$
* Revision 1.8 1998/05/11 19:51:25 neo
* Updated print plug-in to version 2.0
* Revision 1.9 1998/05/14 00:32:50 yosh
* updated print plugin
*
* stubbed out nonworking frac code
*
* --Sven
* -Yosh
*
* Revision 1.13 1998/05/13 17:00:36 mike
* Minor change to CMYK generation code - now cube black difference value
* for better colors.
*
* Revision 1.12 1998/05/08 19:20:50 mike
* Updated CMYK generation code to use new method.
@ -295,6 +300,7 @@ dither_cmyk(guchar *rgb, /* I - RGB pixels */
*/
diff = 255 - (abs(c - m) + abs(c - y) + abs(m - y)) / 3;
diff = diff * diff * diff / 65025; /* diff = diff^3 */
k = diff * k / 255;
divk = 255 - k;

View File

@ -39,11 +39,15 @@
* Revision History:
*
* $Log$
* Revision 1.8 1998/05/11 19:52:36 neo
* Updated print plug-in to version 2.0
* Revision 1.9 1998/05/14 00:32:51 yosh
* updated print plugin
*
* stubbed out nonworking frac code
*
* --Sven
* -Yosh
*
* Revision 1.17 1998/05/11 23:56:05 mike
* Miscellaneous portability changes.
*
* Revision 1.16 1998/05/08 20:52:55 mike
* Whoops, wasn't showing/hiding PPD file browse button.
@ -1305,7 +1309,7 @@ plist_build_menu(GtkWidget *option, /* I - Option button */
*menu = NULL;
};
if (num_items == NULL)
if (num_items == 0)
{
gtk_widget_hide(option);
return;
@ -2099,7 +2103,7 @@ get_printers(void)
memset(plist, 0, sizeof(plist));
plist_count = 1;
strcpy(plist[0].name, "File");
sprintf(plist[0].command, "", line);
plist[0].command[0] = '\0';
strcpy(plist[0].driver, "ps2");
plist[0].output_type = OUTPUT_COLOR;

View File

@ -22,11 +22,12 @@
* Revision History:
*
* $Log$
* Revision 1.5 1998/05/11 19:53:31 neo
* Updated print plug-in to version 2.0
* Revision 1.6 1998/05/14 00:32:53 yosh
* updated print plugin
*
* stubbed out nonworking frac code
*
* --Sven
* -Yosh
*
* Revision 1.11 1998/05/08 19:20:50 mike
* Updated for new driver interface.