Commit 8bc4f008 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.
parent 720d8fa7
......@@ -196,8 +196,8 @@ gimp_brush_clipboard_buffer_changed (Gimp *gimp,
const Babl *format = gegl_buffer_get_format (buffer);
GeglBuffer *dest_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 = gimp_temp_buf_new (width, height,
babl_format ("Y u8"));
......
......@@ -188,8 +188,8 @@ gimp_pattern_clipboard_buffer_changed (Gimp *gimp,
gint width;
gint height;
width = MIN (gimp_buffer_get_width (buffer), 512);
height = MIN (gimp_buffer_get_height (buffer), 512);
width = MIN (gimp_buffer_get_width (buffer), 2048);
height = MIN (gimp_buffer_get_height (buffer), 2048);
pattern->mask = gimp_temp_buf_new (width, height,
gimp_buffer_get_format (buffer));
......
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