gimp/libgimpmath
Ell 80a526861f Bug 788461 - Selection with a Fixed size is created with an ...
... off-by one size in special cases

The last commit wasn't drastic enough.  We changed SIGNED_ROUND()
to use RINT(), which, in turn, may use rint().  However, rint()
effectively breaks ties to even, so that we get stuff like
'rint (1.5) - rint (0.5) == 2.0 - 0.0 == 2.0'.  This can't be
good--it's entirely possible that we're bitten by this in other
cases without noticing.

Avoid rint() entirely in RINT(), and always use 'floor (x) + 0.5'
instead, which always breaks ties up.  Hopefully, this doesn't
break anything else...
2017-10-05 17:50:07 -04:00
..
.gitignore Added .gitignore files generated with git svn create-ignore. 2009-01-31 11:37:44 +00:00
Makefile.am Makefile: fix VPATH builds for win32. 2014-09-14 18:28:26 +02:00
gimpmath.def Bug 316479 - The Perspective Tool creates an empy image... 2016-11-08 17:26:21 +01:00
gimpmath.h Bug 788461 - Selection with a Fixed size is created with an ... 2017-10-05 17:50:07 -04:00
gimpmathtypes.h libgimp*: add GIMP_DEPRECATED macros using G_DEPRECATED 2012-05-03 00:54:21 +02:00
gimpmatrix.c libgimp*: various doc fixes 2017-06-03 21:22:12 +02:00
gimpmatrix.h Bug 316479 - The Perspective Tool creates an empy image... 2016-11-08 17:26:21 +01:00
gimpmd5.c libgimp*: add GIMP_DEPRECATED macros using G_DEPRECATED 2012-05-03 00:54:21 +02:00
gimpmd5.h libgimp*: add GIMP_DEPRECATED macros using G_DEPRECATED 2012-05-03 00:54:21 +02:00
gimpvector.c Fix a lot of warnings all over the place 2016-10-31 01:36:35 +01:00
gimpvector.h libgimp*: add guards that #error out if individual files are included 2011-04-28 14:30:41 +02:00