mirror of https://github.com/GNOME/gimp.git
also mix in the new members of the GimpCoords struct.
2008-07-17 Sven Neumann <sven@gimp.org> * app/core/gimpcoords.c (gimp_coords_mix): also mix in the new members of the GimpCoords struct. svn path=/trunk/; revision=26230
This commit is contained in:
parent
154e185df5
commit
7447eeb09c
|
@ -1,3 +1,8 @@
|
|||
2008-07-17 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimpcoords.c (gimp_coords_mix): also mix in the new
|
||||
members of the GimpCoords struct.
|
||||
|
||||
2008-07-17 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimpcoords.c (gimp_coords_mix): formatting.
|
||||
|
|
|
@ -50,6 +50,12 @@ gimp_coords_mix (const gdouble amul,
|
|||
ret_val->xtilt = amul * a->xtilt + bmul * b->xtilt;
|
||||
ret_val->ytilt = amul * a->ytilt + bmul * b->ytilt;
|
||||
ret_val->wheel = amul * a->wheel + bmul * b->wheel;
|
||||
ret_val->delta_time = amul * a->delta_time + bmul * b->delta_time;
|
||||
ret_val->delta_x = amul * a->delta_x + bmul * b->delta_x;
|
||||
ret_val->delta_y = amul * a->delta_y + bmul * b->delta_y;
|
||||
ret_val->distance = amul * a->distance + bmul * b->distance;
|
||||
ret_val->velocity = amul * a->velocity + bmul * b->velocity;
|
||||
ret_val->random = amul * a->random + bmul * b->random;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -59,6 +65,12 @@ gimp_coords_mix (const gdouble amul,
|
|||
ret_val->xtilt = amul * a->xtilt;
|
||||
ret_val->ytilt = amul * a->ytilt;
|
||||
ret_val->wheel = amul * a->wheel;
|
||||
ret_val->delta_time = amul * a->delta_time;
|
||||
ret_val->delta_x = amul * a->delta_x;
|
||||
ret_val->delta_y = amul * a->delta_y;
|
||||
ret_val->distance = amul * a->distance;
|
||||
ret_val->velocity = amul * a->velocity;
|
||||
ret_val->random = amul * a->random;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue