Hi,
I committed the change which I proposed earlier, introducing the following in 
GSGuiPrivate.h:

/**
 * Rounds to the nearest integer, and in the case of ties, round to the 
 * larger integer. This is the recommended rounding function for rounding
 * graphics points.
 *
 * For example:
 * GSRoundTowardsInfinity(0.8) == 1.0
 * GSRoundTowardsInfinity(0.5) == 1.0
 * GSRoundTowardsInfinity(0.1) == 0.0
 * GSRoundTowardsInfinity(-2.5) == -2.0
 */
static inline CGFloat GSRoundTowardsInfinity(CGFloat x)
{
  return floor(x + 0.5);
}

and switching uses of rint[f] to this function. The jumping buttons in 
SimpleAgenda are fixed now.

Eric
_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to