Commit c1502c6f authored by Michael Natterer's avatar Michael Natterer 😴

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 8bc4f008)
parent 9594668e
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment