ae53754392371fb4f12ce622b5ccaf79321d0556
kate
  Mon Mar 12 15:29:40 2018 -0700
Curve function returns max y drawn (helps max box placement). refs #17512

diff --git src/hg/inc/hvGfx.h src/hg/inc/hvGfx.h
index 92c9fe9..2acc739 100644
--- src/hg/inc/hvGfx.h
+++ src/hg/inc/hvGfx.h
@@ -313,27 +313,27 @@
 
 void hvGfxEllipseDraw(struct hvGfx *hvg, int x0, int y0, int x1, int y1, Color color, 
                         int mode, boolean isDotted);
 /* Draw an ellipse (or limit to top or bottom) specified by rectangle, using Bresenham algorithm.
  * Optionally, alternate dots.
  * Point 0 is left, point 1 is top of rectangle
  * 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 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, 
+int 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.
+ * Return max y value. 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, boolean isDash);
 /* Brezenham line algorithm, alternating dots, by 1 pixel or two (isDash true) */
 
 #endif