mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
Shut up gcc AND cvs
-Yosh
This commit is contained in:
parent
f6db9670d1
commit
2e8d1aaa79
@ -20,3 +20,4 @@ gtkmarshal.c
|
|||||||
gtktypebuiltins_ids.c
|
gtktypebuiltins_ids.c
|
||||||
gtktypebuiltins_vars.c
|
gtktypebuiltins_vars.c
|
||||||
gtktypebuiltins_evals.c
|
gtktypebuiltins_evals.c
|
||||||
|
gtk.defs
|
||||||
|
@ -1293,13 +1293,11 @@ gtk_color_selection_eval_wheel (gint x, gint y,
|
|||||||
gdouble cx, gdouble cy,
|
gdouble cx, gdouble cy,
|
||||||
gdouble *h, gdouble *s)
|
gdouble *h, gdouble *s)
|
||||||
{
|
{
|
||||||
gdouble d, r, rx, ry, l;
|
gdouble r, rx, ry;
|
||||||
|
|
||||||
rx = ((gdouble) x - cx);
|
rx = ((gdouble) x - cx);
|
||||||
ry = ((gdouble) y - cy);
|
ry = ((gdouble) y - cy);
|
||||||
|
|
||||||
d = (SQR (cy) * SQR (rx) + SQR (cx) * SQR (ry) - SQR (cx) * SQR (cy));
|
|
||||||
|
|
||||||
rx = rx/cx;
|
rx = rx/cx;
|
||||||
ry = ry/cy;
|
ry = ry/cy;
|
||||||
|
|
||||||
@ -1316,11 +1314,11 @@ gtk_color_selection_eval_wheel (gint x, gint y,
|
|||||||
if (*s == 0.0)
|
if (*s == 0.0)
|
||||||
*s = 0.00001;
|
*s = 0.00001;
|
||||||
else if (*s > 1.0)
|
else if (*s > 1.0)
|
||||||
{
|
{
|
||||||
*s = 1.0;
|
*s = 1.0;
|
||||||
return 1;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return 0;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user