~ubuntu-branches/ubuntu/hardy/libgdiplus/hardy

« back to all changes in this revision

Viewing changes to src/lineargradientbrush.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2007-12-18 13:08:10 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218130810-hlmitxfddf6h511j
Tags: 1.2.6-1ubuntu1
* Sync with Debian:
  - debian/control:
    + Add lpia and sparc to the architectures. We support them.
    + Change Maintainer to Ubuntu Mono Team.

Show diffs side-by-side

added added

removed removed

Lines of Context:
336
336
        if (linear->base.changed || !linear->pattern) {
337
337
 
338
338
                /* destroy the existing pattern */
339
 
                if (linear->pattern)
 
339
                if (linear->pattern) {
340
340
                        cairo_pattern_destroy (linear->pattern);
 
341
                        linear->pattern = NULL;
 
342
                }
341
343
 
342
 
                if (linear->wrapMode == WrapModeClamp) {
 
344
                if (linear->wrapMode == WrapModeClamp)
343
345
                        return InvalidParameter;
344
 
                }
345
346
                        
346
347
                status = create_tile_linear (graphics, ct, linear);
347
348
 
520
521
 
521
522
        linear->points [0].X = linear->rectangle.X;
522
523
        linear->points [0].Y = linear->rectangle.Y;
523
 
        linear->points [1].X = linear->rectangle.X + linear->rectangle.Width + 1;
 
524
        linear->points [1].X = linear->rectangle.X + linear->rectangle.Width;
524
525
        linear->points [1].Y = linear->rectangle.Y;
525
526
 
526
527
        linear->angle = linear->angle * DEGTORAD;