app: make the code in gimp_drawable_mask_intersect() a bit more readable

This commit is contained in:
Michael Natterer 2010-09-07 17:08:54 +02:00
parent bdc2d4520b
commit df1575234c
1 changed files with 5 additions and 2 deletions

View File

@ -1827,10 +1827,13 @@ gimp_drawable_mask_intersect (GimpDrawable *drawable,
gimp_item_get_offset (item, &off_x, &off_y);
tmp_width -= tmp_x;
tmp_height -= tmp_y;
retval = gimp_rectangle_intersect (tmp_x - off_x, tmp_y - off_y,
tmp_width - tmp_x, tmp_height - tmp_y,
tmp_width, tmp_height,
0, 0,
gimp_item_get_width (item),
gimp_item_get_width (item),
gimp_item_get_height (item),
&tmp_x, &tmp_y,
&tmp_width, &tmp_height);