Commit bc284880 authored by Simon Budig's avatar Simon Budig Committed by Simon Budig

change the PROJ_ROUND macro to do proper rounding. Seems to work well.

2007-10-24  Simon Budig  <simon@gimp.org>

        * app/display/gimpdisplayshell.h: change the PROJ_ROUND macro
	to do proper rounding. Seems to work well.


svn path=/trunk/; revision=23936
parent d5f62de9
2007-10-24 Simon Budig <simon@gimp.org>
* app/display/gimpdisplayshell.h: change the PROJ_ROUND macro
to do proper rounding. Seems to work well.
2007-10-24 Sven Neumann <sven@gimp.org>
Michael Natterer <mitch@gimp.org>
......
......@@ -26,8 +26,8 @@
/* Apply to a float the same rounding mode used in the renderer */
#define PROJ_ROUND(coord) ((gint) (coord))
#define PROJ_ROUND64(coord) ((gint64) (coord))
#define PROJ_ROUND(coord) ((gint) ((coord) + 0.5))
#define PROJ_ROUND64(coord) ((gint64) ((coord) + 0.5))
/* finding the effective screen resolution (double) */
#define SCREEN_XRES(s) ((s)->dot_for_dot ? \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment