forked from enlightenment/efl
xcf: mark functions static if possible
This commit is contained in:
parent
db9ef84894
commit
de6120c835
|
@ -448,7 +448,7 @@ extern void combine_pixels_diss (DATA8* src, int src_w, int src_h, DATA8* dest,
|
|||
/* ---------------------------------------------------------------------------- globals ------------ */
|
||||
|
||||
/* This makes using the Gimp sources easier */
|
||||
struct _GimpImage * image = &_image;
|
||||
static struct _GimpImage * image = &_image;
|
||||
|
||||
/* ------------------------------------------------------------------------------- code ------------ */
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#define INT_MULT(a,b,t) ((t) = (a) * (b) + 0x80, ((((t) >> 8) + (t)) >> 8))
|
||||
#define LINEAR(x,y,w) ((w*y + x)*4)
|
||||
|
||||
void
|
||||
static void
|
||||
rgb_to_hls (DATA8 *red, DATA8 *green, DATA8 *blue)
|
||||
{
|
||||
int r, g, b;
|
||||
|
@ -96,7 +96,7 @@ rgb_to_hls (DATA8 *red, DATA8 *green, DATA8 *blue)
|
|||
}
|
||||
|
||||
|
||||
DATA8
|
||||
static DATA8
|
||||
gimp_hls_value (double n1, double n2, double hue)
|
||||
{
|
||||
double value;
|
||||
|
@ -118,7 +118,7 @@ gimp_hls_value (double n1, double n2, double hue)
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
hls_to_rgb (DATA8 *hue, DATA8 *lightness, DATA8 *saturation)
|
||||
{
|
||||
double h, l, s;
|
||||
|
@ -152,7 +152,7 @@ hls_to_rgb (DATA8 *hue, DATA8 *lightness, DATA8 *saturation)
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
rgb_to_hsv (DATA8 *red, DATA8 *green, DATA8 *blue)
|
||||
{
|
||||
int r, g, b;
|
||||
|
@ -208,7 +208,7 @@ rgb_to_hsv (DATA8 *red, DATA8 *green, DATA8 *blue)
|
|||
*blue = v;
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
hsv_to_rgb (DATA8 *hue, DATA8 *saturation, DATA8 *value)
|
||||
{
|
||||
double h, s, v;
|
||||
|
@ -273,6 +273,7 @@ hsv_to_rgb (DATA8 *hue, DATA8 *saturation, DATA8 *value)
|
|||
}
|
||||
|
||||
/* translate negative destinations */
|
||||
static
|
||||
void _clip(int * src_tl_x, int * src_tl_y,
|
||||
int * src_br_x, int * src_br_y,
|
||||
int * dest_x, int * dest_y,
|
||||
|
@ -616,7 +617,7 @@ combine_pixels_overlay (DATA8* src, int src_w, int src_h, DATA8* dest, int dest_
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
combine_pixels_hsv (DATA8* src, int src_w, int src_h, DATA8* dest, int dest_w, int dest_h, int dest_x, int dest_y, int mode)
|
||||
{
|
||||
int x, y, s_idx, d_idx;
|
||||
|
|
Loading…
Reference in New Issue