3032095fbd5dafc5cc96d4ba375e215c9a7bd745 kate Tue Jan 30 16:27:15 2018 -0800 Change dotted lines to dashed for better visibility. Suggestion by JK. refs #17512 diff --git src/hg/inc/hvGfx.h src/hg/inc/hvGfx.h index b5cbdfd..92c9fe9 100644 --- src/hg/inc/hvGfx.h +++ src/hg/inc/hvGfx.h @@ -321,19 +321,19 @@ void hvGfxEllipse(struct hvGfx *hvg, int x0, int y0, int x1, int y1, Color color); /* Draw an ellipse using Bresenham algorithm. * Point 0 is left, point 1 is top * Adapted trivially from code posted at http://members.chello.at/~easyfilter/bresenham.html */ void hvGfxCurve(struct hvGfx *hvg, int x0, int y0, int x1, int y1, int x2, int y2, Color color, boolean isDotted); /* Draw a segment of an anti-aliased curve within 3 points (quadratic Bezier) * Optionally alternate dots. * Adapted trivially from code posted at http://members.chello.at/~easyfilter/bresenham.html */ /* Thanks to author * @author Zingl Alois * @date 22.08.2016 */ -void hvGfxDottedLine(struct hvGfx *hvg, int x1, int y1, int x2, int y2, Color color); -/* Brezenham line algorithm, alternating dots */ +void hvGfxDottedLine(struct hvGfx *hvg, int x1, int y1, int x2, int y2, Color color, boolean isDash); +/* Brezenham line algorithm, alternating dots, by 1 pixel or two (isDash true) */ #endif