Don't round texture coordinates when not using interpolation. Fixes bug

2004-06-15  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_tiles_affine):
	Don't round texture coordinates when not using interpolation. Fixes
	bug #144352 for the nearest neighbor case only.
This commit is contained in:
Philip Lafleur 2004-06-15 08:18:13 +00:00 committed by Philip Lafleur
parent c5810390d1
commit 8059d9aa29
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2004-06-15 Philip Lafleur <plafleur@cvs.gnome.org>
* app/core/gimpdrawable-transform.c (gimp_drawable_transform_tiles_affine):
Don't round texture coordinates when not using interpolation. Fixes
bug #144352 for the nearest neighbor case only.
2004-06-14 Sven Neumann <sven@gimp.org>
* app/paint/gimpinkoptions.c: replaced some arbitrary values with

View File

@ -360,8 +360,8 @@ gimp_drawable_transform_tiles_affine (GimpDrawable *drawable,
if (interpolation_type == GIMP_INTERPOLATION_NONE)
{
guchar color[MAX_CHANNELS];
gint iu = RINT (u[0]);
gint iv = RINT (v[0]);
gint iu = (gint) u [0];
gint iv = (gint) v [0];
gint b;
if (iu >= u1 && iu < u2 &&

View File

@ -360,8 +360,8 @@ gimp_drawable_transform_tiles_affine (GimpDrawable *drawable,
if (interpolation_type == GIMP_INTERPOLATION_NONE)
{
guchar color[MAX_CHANNELS];
gint iu = RINT (u[0]);
gint iv = RINT (v[0]);
gint iu = (gint) u [0];
gint iv = (gint) v [0];
gint b;
if (iu >= u1 && iu < u2 &&