GNOME Bugzilla – Bug 312147
antialiased hex grid drawn incorrectly
Last modified: 2006-01-29 18:48:48 UTC
Distribution/Version: Debian A Debian user reported the following: ==================================================================== Steps to reproduce: - Start dia - Turn off dynamic grid and turn on hex grid. Hex grid drawn correctly. - Turn on antialiasing. Hex grid drawn incorrectly. See attached screenshot. Both vanilla dia and dia-gnome exhibit this effect. I also couldn't help but notice that the 'Hex grid size' value has absolutely no effect on the size of the hex grid. ==================================================================== I can reproduce this here. See also: http://bugs.debian.org/319981
Confirmed, looks slanted to the right.
Marking as confirmed. Seems the draw_pixel_line function in render_libart is only used non-horizontally/vertically in this one case, and thus is poorly tested. It's also awfully complex. If anybody wants to poke at the algorithm, it is attached.
Created attachment 54784 [details] C implementation of bresenham
2006-01-29 Hans Breuer <hans@breuer.org> * app/render_libart.c(draw_line) : make setting the pixel side-effect free; account for it in now (less) magic increments. Fixes bug #312147