Skip to content
  • Jehan's avatar
    app, libgimp, pdb: new gimp_pattern_get_buffer() and improved GimpPatternSelectButton. · 457f52a6
    Jehan authored
    Similar to the latest commits for GimpBrush:
    
    - gimp_pattern_get_buffer() returns a GeglBuffer and allow getting a scaled
      version of the pattern.
    - Old gimp_pattern_get_pixels() is made private.
    - Moved GimpPattern into its own file and store the buffer to avoid re-querying
      it through PDB continuously.
    
    No as for the widget to select a pattern:
    
    - Preview frame ensured to be square.
    - Default size increased.
    - Drawing code using the new gimp_pattern_get_buffer().
    - Cleaned up code.
    457f52a6