[gimp/gimp-2-8] Bug 692668 - Browse For Patterns



commit c1502c6ff7c250f2af589127e7dcecf8279068ef
Author: Michael Natterer <mitch gimp org>
Date:   Tue Mar 26 23:55:40 2013 +0100

    Bug 692668 - Browse For Patterns
    
    Increase the max size of the clipboard brush and pattern to 2048x2048
    pixels. Still arbitrary but much better.
    (cherry picked from commit 8bc4f008e7469ba89440b663c5d2cca05a91028d)

 app/core/gimpbrushclipboard.c   |    4 ++--
 app/core/gimppatternclipboard.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpbrushclipboard.c b/app/core/gimpbrushclipboard.c
index 4e5d24e..7639dcf 100644
--- a/app/core/gimpbrushclipboard.c
+++ b/app/core/gimpbrushclipboard.c
@@ -201,8 +201,8 @@ gimp_brush_clipboard_buffer_changed (Gimp      *gimp,
       TileManager   *tiles = gimp_buffer_get_tiles (gimp->global_buffer);
       GimpImageType  type  = gimp_buffer_get_image_type (gimp->global_buffer);
 
-      width  = MIN (gimp_buffer_get_width  (gimp->global_buffer), 512);
-      height = MIN (gimp_buffer_get_height (gimp->global_buffer), 512);
+      width  = MIN (gimp_buffer_get_width  (gimp->global_buffer), 2048);
+      height = MIN (gimp_buffer_get_height (gimp->global_buffer), 2048);
 
       brush->mask   = temp_buf_new (width, height, 1, 0, 0, NULL);
       brush->pixmap = temp_buf_new (width, height, 3, 0, 0, NULL);
diff --git a/app/core/gimppatternclipboard.c b/app/core/gimppatternclipboard.c
index 990a50d..debc0b4 100644
--- a/app/core/gimppatternclipboard.c
+++ b/app/core/gimppatternclipboard.c
@@ -195,8 +195,8 @@ gimp_pattern_clipboard_buffer_changed (Gimp        *gimp,
       PixelRegion  bufferPR;
       PixelRegion  maskPR;
 
-      width  = MIN (gimp_buffer_get_width  (gimp->global_buffer), 512);
-      height = MIN (gimp_buffer_get_height (gimp->global_buffer), 512);
+      width  = MIN (gimp_buffer_get_width  (gimp->global_buffer), 2048);
+      height = MIN (gimp_buffer_get_height (gimp->global_buffer), 2048);
       bytes  = gimp_buffer_get_bytes (gimp->global_buffer);
 
       pattern->mask = temp_buf_new (width, height, bytes, 0, 0, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]