~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to src/gspaint.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: gspaint.c 8161 2007-08-01 21:20:57Z ray $ */
 
14
/* $Id: gspaint.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* Painting procedures for Ghostscript library */
16
16
#include "math_.h"              /* for fabs */
17
17
#include "gx.h"
110
110
 * Determine the number of bits of alpha buffer for a stroke or fill.
111
111
 * We should do alpha buffering iff this value is >1.
112
112
 */
113
 
private int
 
113
static int
114
114
alpha_buffer_bits(gs_state * pgs)
115
115
{
116
116
    gx_device *dev;
136
136
 * alpha buffering.  Either of these is a little inconvenient, but
137
137
 * the former is less inconvenient.
138
138
 */
139
 
private int
 
139
static int
140
140
scale_paths(gs_state * pgs, int log2_scale_x, int log2_scale_y, bool do_path)
141
141
{
142
142
    /*
188
188
    }
189
189
    return 0;
190
190
}
191
 
private void
 
191
static void
192
192
scale_dash_pattern(gs_state * pgs, floatp scale)
193
193
{
194
194
    int i;
201
201
    if (pgs->line_params.dot_length_absolute)
202
202
        pgs->line_params.dot_length *= scale;
203
203
}
204
 
private int
 
204
static int
205
205
alpha_buffer_init(gs_state * pgs, fixed extra_x, fixed extra_y, int alpha_bits)
206
206
{
207
207
    gx_device *dev = gs_currentdevice_inline(pgs);
247
247
}
248
248
 
249
249
/* Release an alpha buffer. */
250
 
private int
 
250
static int
251
251
alpha_buffer_release(gs_state * pgs, bool newpath)
252
252
{
253
253
    gx_device_memory *mdev =
263
263
}
264
264
 
265
265
/* Fill the current path using a specified rule. */
266
 
private int
 
266
static int
267
267
fill_with_rule(gs_state * pgs, int rule)
268
268
{
269
269
    int code;