gegl r1829 - in trunk: . operations/core
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r1829 - in trunk: . operations/core
- Date: Tue, 8 Jan 2008 01:24:31 +0000 (GMT)
Author: ok
Date: Tue Jan 8 01:24:31 2008
New Revision: 1829
URL: http://svn.gnome.org/viewvc/gegl?rev=1829&view=rev
Log:
* operations/core/crop.c: use doubles not floats ..
* operations/core/shift.c: .. like the rest of the GEGL ops.
Modified:
trunk/ChangeLog
trunk/operations/core/crop.c
trunk/operations/core/shift.c
Modified: trunk/operations/core/crop.c
==============================================================================
--- trunk/operations/core/crop.c (original)
+++ trunk/operations/core/crop.c Tue Jan 8 01:24:31 2008
@@ -40,10 +40,10 @@
{
GeglOperation parent_instance;
- gfloat x;
- gfloat y;
- gfloat width;
- gfloat height;
+ gdouble x;
+ gdouble y;
+ gdouble width;
+ gdouble height;
};
struct _GeglOperationCropClass
@@ -141,7 +141,7 @@
GEGL_PARAM_PAD_INPUT));
g_object_class_install_property (object_class, PROP_X,
- g_param_spec_float ("x",
+ g_param_spec_double ("x",
"X",
"X",
-G_MAXFLOAT, G_MAXFLOAT,
@@ -150,27 +150,27 @@
G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_Y,
- g_param_spec_float ("y",
+ g_param_spec_double ("y",
"Y",
"Y",
- -G_MAXFLOAT, G_MAXFLOAT,
+ -G_MAXDOUBLE, G_MAXDOUBLE,
0.0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_WIDTH,
- g_param_spec_float ("width",
+ g_param_spec_double ("width",
"Width",
"Width",
- 0.0, G_MAXFLOAT,
+ 0.0, G_MAXDOUBLE,
10.0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_HEIGHT,
- g_param_spec_float ("height",
+ g_param_spec_double ("height",
"Height",
"Height",
- 0.0, G_MAXFLOAT,
+ 0.0, G_MAXDOUBLE,
10.0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
@@ -231,19 +231,19 @@
switch (property_id)
{
case PROP_X:
- g_value_set_float (value, self->x);
+ g_value_set_double (value, self->x);
break;
case PROP_Y:
- g_value_set_float (value, self->y);
+ g_value_set_double (value, self->y);
break;
case PROP_WIDTH:
- g_value_set_float (value, self->width);
+ g_value_set_double (value, self->width);
break;
case PROP_HEIGHT:
- g_value_set_float (value, self->height);
+ g_value_set_double (value, self->height);
break;
default:
@@ -263,19 +263,19 @@
switch (property_id)
{
case PROP_X:
- self->x = g_value_get_float (value);
+ self->x = g_value_get_double (value);
break;
case PROP_Y:
- self->y = g_value_get_float (value);
+ self->y = g_value_get_double (value);
break;
case PROP_WIDTH:
- self->width = g_value_get_float (value);
+ self->width = g_value_get_double (value);
break;
case PROP_HEIGHT:
- self->height = g_value_get_float (value);
+ self->height = g_value_get_double (value);
break;
default:
Modified: trunk/operations/core/shift.c
==============================================================================
--- trunk/operations/core/shift.c (original)
+++ trunk/operations/core/shift.c Tue Jan 8 01:24:31 2008
@@ -38,8 +38,8 @@
{
GeglOperation parent_instance;
- gfloat x;
- gfloat y;
+ gdouble x;
+ gdouble y;
};
struct _GeglOperationShiftClass
@@ -135,19 +135,19 @@
GEGL_PARAM_PAD_INPUT));
g_object_class_install_property (object_class, PROP_X,
- g_param_spec_float ("x",
+ g_param_spec_double ("x",
"X",
"X",
- -G_MAXFLOAT, G_MAXFLOAT,
+ -G_MAXDOUBLE, G_MAXDOUBLE,
0.0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_Y,
- g_param_spec_float ("y",
+ g_param_spec_double ("y",
"Y",
"Y",
- -G_MAXFLOAT, G_MAXFLOAT,
+ -G_MAXDOUBLE, G_MAXDOUBLE,
0.0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
@@ -208,11 +208,11 @@
switch (property_id)
{
case PROP_X:
- g_value_set_float (value, self->x);
+ g_value_set_double (value, self->x);
break;
case PROP_Y:
- g_value_set_float (value, self->y);
+ g_value_set_double (value, self->y);
break;
default:
@@ -232,11 +232,11 @@
switch (property_id)
{
case PROP_X:
- self->x = g_value_get_float (value);
+ self->x = g_value_get_double (value);
break;
case PROP_Y:
- self->y = g_value_get_float (value);
+ self->y = g_value_get_double (value);
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]