~ubuntu-branches/ubuntu/oneiric/gimp/oneiric

« back to all changes in this revision

Viewing changes to app/core/gimpdrawable-transform.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-08-31 10:24:10 UTC
  • mfrom: (1.1.21 upstream) (0.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090831102410-eqawgw6fhdyi91ee
Tags: 2.6.7-1ubuntu1
* Merge with Debian unstable (LP: #419593), remaining changes:
  - debian/patches/02_help-message.patch,
    debian/patches/03_gimp.desktop.in.in.patch:
    + updated some strings for ubuntu
  - debian/rules:
    + updated translation templates
  - debian/control:
    + Drop webkit build dependency. gimp is the only thing pulling in webkit
      for the desktop CDs, and makes them explode. Without the webkit help
      browser plugin, help will just be displayed in the default browser.
* debian/patches/01_debian-gimprc.patch:
  - Updated
* debian/control:
  - Added a BZR link

Show diffs side-by-side

added added

removed removed

Lines of Context:
577
577
      if (GIMP_IS_CHANNEL (drawable) && tile_manager_bpp (orig_tiles) == 1)
578
578
        clip_result = GIMP_TRANSFORM_RESIZE_CLIP;
579
579
 
 
580
      /*  also transform the mask if we are transforming an entire layer  */
 
581
      if (GIMP_IS_LAYER (drawable) &&
 
582
          gimp_layer_get_mask (GIMP_LAYER (drawable)) &&
 
583
          gimp_channel_is_empty (gimp_image_get_mask (image)))
 
584
        {
 
585
          GimpLayerMask *mask = gimp_layer_get_mask (GIMP_LAYER (drawable));
 
586
 
 
587
          gimp_item_transform (GIMP_ITEM (mask), context,
 
588
                               matrix,
 
589
                               direction,
 
590
                               interpolation_type,
 
591
                               recursion_level,
 
592
                               clip_result,
 
593
                               progress);
 
594
        }
 
595
 
580
596
      /* transform the buffer */
581
597
      new_tiles = gimp_drawable_transform_tiles_affine (drawable, context,
582
598
                                                        orig_tiles,
664
680
      if (GIMP_IS_CHANNEL (drawable) && tile_manager_bpp (orig_tiles) == 1)
665
681
        clip_result = TRUE;
666
682
 
 
683
      /*  also transform the mask if we are transforming an entire layer  */
 
684
      if (GIMP_IS_LAYER (drawable) &&
 
685
          gimp_layer_get_mask (GIMP_LAYER (drawable)) &&
 
686
          gimp_channel_is_empty (gimp_image_get_mask (image)))
 
687
        {
 
688
          GimpLayerMask *mask = gimp_layer_get_mask (GIMP_LAYER (drawable));
 
689
 
 
690
          gimp_item_flip (GIMP_ITEM (mask), context,
 
691
                          flip_type,
 
692
                          axis,
 
693
                          clip_result);
 
694
        }
 
695
 
667
696
      /* transform the buffer */
668
697
      if (orig_tiles)
669
698
        {
740
769
      if (GIMP_IS_CHANNEL (drawable) && tile_manager_bpp (orig_tiles) == 1)
741
770
        clip_result = TRUE;
742
771
 
 
772
      /*  also transform the mask if we are transforming an entire layer  */
 
773
      if (GIMP_IS_LAYER (drawable) &&
 
774
          gimp_layer_get_mask (GIMP_LAYER (drawable)) &&
 
775
          gimp_channel_is_empty (gimp_image_get_mask (image)))
 
776
        {
 
777
          GimpLayerMask *mask = gimp_layer_get_mask (GIMP_LAYER (drawable));
 
778
 
 
779
          gimp_item_rotate (GIMP_ITEM (mask), context,
 
780
                            rotate_type,
 
781
                            center_x,
 
782
                            center_y,
 
783
                            clip_result);
 
784
        }
 
785
 
743
786
      /* transform the buffer */
744
787
      new_tiles = gimp_drawable_transform_tiles_rotate (drawable, context,
745
788
                                                        orig_tiles,