~ubuntu-branches/ubuntu/trusty/gimp/trusty

« back to all changes in this revision

Viewing changes to app/tools/gimprectangletool.c

  • Committer: Bazaar Package Importer
  • Author(s): Ari Pollak
  • Date: 2009-08-14 09:57:17 UTC
  • mto: (1.1.21 upstream) (0.1.5 squeeze)
  • mto: This revision was merged to the branch mainline in revision 48.
  • Revision ID: james.westby@ubuntu.com-20090814095717-37dh2xqy5t0rurpk
ImportĀ upstreamĀ versionĀ 2.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
4099
4099
{
4100
4100
  GimpRectangleToolPrivate *priv = GIMP_RECTANGLE_TOOL_GET_PRIVATE (rect_tool);
4101
4101
 
4102
 
  priv->x1_int = ROUND (priv->x1);
4103
 
  priv->y1_int = ROUND (priv->y1);
 
4102
  priv->x1_int = RINT (priv->x1);
 
4103
  priv->y1_int = RINT (priv->y1);
4104
4104
 
4105
4105
  if (gimp_rectangle_tool_rect_rubber_banding_func (rect_tool))
4106
4106
    {
4107
 
      priv->width_int  = ROUND (priv->x2) - priv->x1_int;
4108
 
      priv->height_int = ROUND (priv->y2) - priv->y1_int;
 
4107
      priv->width_int  = (gint) RINT (priv->x2) - priv->x1_int;
 
4108
      priv->height_int = (gint) RINT (priv->y2) - priv->y1_int;
4109
4109
    }
4110
4110
}
4111
4111
 
4176
4176
  switch (priv->precision)
4177
4177
    {
4178
4178
      case GIMP_RECTANGLE_PRECISION_INT:
4179
 
        *coord_x_output = ROUND (coord_x_input);
4180
 
        *coord_y_output = ROUND (coord_y_input);
 
4179
        *coord_x_output = RINT (coord_x_input);
 
4180
        *coord_y_output = RINT (coord_y_input);
4181
4181
        break;
4182
4182
 
4183
4183
      case GIMP_RECTANGLE_PRECISION_DOUBLE: