~ubuntu-branches/ubuntu/trusty/sawfish/trusty

« back to all changes in this revision

Viewing changes to src/gradient.c

  • Committer: Bazaar Package Importer
  • Author(s): Luis Rodrigo Gallardo Cruz
  • Date: 2009-03-05 11:53:27 UTC
  • mfrom: (1.2.8 upstream) (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090305115327-1r4yg4eeodiyzu6z
Tags: 1:1.3.4-1
* New upstream release (Closes: #501092).
 - Includes patch from upstream BTS to fix focus handling after move-window-*
 (Closes: #132236).
 - Bump build dependency on GTK+ to 2.6.
* Loosen quilt dependency.
* Add README.source. Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* gradient.c -- draw Afterstep-like gradients in images
2
 
   $Id: gradient.c 2871 2000-07-27 14:37:56Z john $ 
 
2
   $Id: gradient.c 4244 2008-08-04 14:42:49Z jkozicki $ 
3
3
 
4
4
   Copyright (C) 1999 John Harper <john@dcs.warwick.ac.uk>
5
5
 
24
24
DEFUN("draw-vertical-gradient", Fdraw_vertical_gradient,
25
25
      Sdraw_vertical_gradient, (repv img, repv from_, repv to_), rep_Subr3)
26
26
{
27
 
    u_char from[3], to[3];
 
27
    unsigned char from[3], to[3];
28
28
    int width, height, stride, channels;
29
29
    int x, y;
30
 
    u_char *data;
 
30
    unsigned char *data;
31
31
 
32
32
    rep_DECLARE1(img, IMAGEP);
33
33
    rep_DECLARE2(from_, COLORP);
66
66
DEFUN("draw-horizontal-gradient", Fdraw_horizontal_gradient,
67
67
      Sdraw_horizontal_gradient, (repv img, repv from_, repv to_), rep_Subr3)
68
68
{
69
 
    u_char from[3], to[3];
 
69
    unsigned char from[3], to[3];
70
70
    int width, height, stride, channels;
71
71
    int x, y;
72
 
    u_char *data;
 
72
    unsigned char *data;
73
73
 
74
74
    rep_DECLARE1(img, IMAGEP);
75
75
    rep_DECLARE2(from_, COLORP);
111
111
    double from[3], to[3];
112
112
    int width, height, stride, channels;
113
113
    int x, y;
114
 
    u_char *data;
 
114
    unsigned char *data;
115
115
 
116
116
    rep_DECLARE1(img, IMAGEP);
117
117
    rep_DECLARE2(from_, COLORP);