d47135580518b138a64b785eddbc65891e48be21 kate Fri Jan 12 10:13:52 2018 -0800 Integrate antialiased ellipse code. Awaits antialiasing fix from Braney. refs #17512 diff --git src/hg/inc/hvGfx.h src/hg/inc/hvGfx.h index be5535c..6062adf 100644 --- src/hg/inc/hvGfx.h +++ src/hg/inc/hvGfx.h @@ -311,28 +311,28 @@ /* a remote control. If nextItem is TRUE, it points right, otherwise */ /* left. color is the outline color, and hvgColor is the fill color. */ void hvGfxEllipseDraw(struct hvGfx *hvg, int x0, int y0, int x1, int y1, Color color, int mode); /* Draw an ellipse or half (top or bottom) using Bresenham algorithm. * Point 1 is left, point 2 is top * Adapted trivially from code posted at http://members.chello.at/~easyfilter/bresenham.html */ void hvGfxEllipse(struct hvGfx *hvg, int x0, int y0, int x1, int y1, Color color); /* Draw an ellipse using Bresenham algorithm. * Point 1 is left, point 2 is top * Adapted trivially from code posted at http://members.chello.at/~easyfilter/bresenham.html */ -void hvGfxEllipseAA(struct hvGfx *hvg, int x0, int y0, int x1, int y1, Color color); -/* Draw an anti-aliased ellipse specified by rectangle, using Bresenham algorithm. +void hvGfxEllipseDrawAA(struct hvGfx *hvg, int x0, int y0, int x1, int y1, Color color, int mode); +/* Draw an anti-aliased ellipse or half (top or bottom) using Bresenham algorithm. * Point 0 is left, point 1 is top of rectangle * 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); /* Draw a an anti-aliased curve within 3 points (quadratic Bezier) * Adapted trivially from code posted at http://members.chello.at/~easyfilter/bresenham.html */ /* Thanks to author * @author Zingl Alois * @date 22.08.2016 */ #endif