mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
Whitespace cleanup that reduces the diff against master
This commit is contained in:
parent
b6dd77ab84
commit
5a145ae4c3
|
@ -67,7 +67,6 @@ gimp_brush_real_transform_size (GimpBrush *brush,
|
|||
scale, scale / aspect_ratio, angle, &matrix);
|
||||
|
||||
gimp_brush_transform_bounding_box (brush, &matrix, &x, &y, width, height);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -638,7 +637,7 @@ gimp_brush_transform_bounding_box (GimpBrush *brush,
|
|||
*width = (gint) (ceil (MAX (MAX (x1, x2), MAX (x3, x4))) - *x);
|
||||
*height = (gint) (ceil (MAX (MAX (y1, y2), MAX (y3, y4))) - *y);
|
||||
|
||||
/*Transform size can not be less than 1 px*/
|
||||
/* Transform size can not be less than 1 px */
|
||||
*width = MAX(1, *width);
|
||||
*height = MAX(1, *height);
|
||||
}
|
||||
|
|
|
@ -479,7 +479,6 @@ gimp_brush_transform_size (GimpBrush *brush,
|
|||
}
|
||||
|
||||
GIMP_BRUSH_GET_CLASS (brush)->transform_size (brush, scale, aspect_ratio, angle, width, height);
|
||||
|
||||
}
|
||||
|
||||
TempBuf *
|
||||
|
|
|
@ -322,7 +322,6 @@ gimp_brush_generated_transform_size (GimpBrush *gbrush,
|
|||
|
||||
*width = half_width * 2 + 1;
|
||||
*height = half_height * 2 + 1;
|
||||
|
||||
}
|
||||
|
||||
static TempBuf *
|
||||
|
@ -351,7 +350,6 @@ gimp_brush_generated_transform_mask (GimpBrush *gbrush,
|
|||
brush->aspect_ratio * aspect_ratio,
|
||||
(brush->angle + 360 * angle),
|
||||
NULL, NULL);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -317,13 +317,11 @@ plug_in_menus_menu_path_added (GimpPlugInProcedure *plug_in_proc,
|
|||
plug_in_menus_add_proc (manager, "/colormap-popup",
|
||||
plug_in_proc, menu_path);
|
||||
}
|
||||
|
||||
else if (! strcmp (manager->name, "<Brushes>"))
|
||||
{
|
||||
plug_in_menus_add_proc (manager, "/brushes-popup",
|
||||
plug_in_proc, menu_path);
|
||||
}
|
||||
|
||||
}
|
||||
else if (! strcmp (manager->name, "<Dynamics>"))
|
||||
{
|
||||
plug_in_menus_add_proc (manager, "/dynamics-popup",
|
||||
|
|
|
@ -43,7 +43,6 @@
|
|||
#include "gimpbrushcore-kernels.h"
|
||||
#include "gimppaintoptions.h"
|
||||
|
||||
|
||||
#include "gimp-intl.h"
|
||||
|
||||
|
||||
|
|
|
@ -95,14 +95,12 @@ struct _GimpBrushCoreClass
|
|||
gboolean handles_changing_brush;
|
||||
|
||||
/* Set for tools that don't mind if the brush scales while painting */
|
||||
|
||||
gboolean handles_transforming_brush;
|
||||
|
||||
void (* set_brush) (GimpBrushCore *core,
|
||||
GimpBrush *brush);
|
||||
void (* set_dynamics) (GimpBrushCore *core,
|
||||
GimpDynamics *brush);
|
||||
|
||||
void (* set_dynamics) (GimpBrushCore *core,
|
||||
GimpDynamics *brush);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue