/*************************************************************************** * ArcTo - Win32 to Win16 Metafile Converter Entry Point **************************************************************************/ BOOL WINAPI DoArcTo ( PLOCALDC pLocalDC, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4 ) { BOOL b ; POINT ptStart, ptEnd ; // If we're recording the drawing orders for a path // then just pass the drawing order to the helper DC. // Do not emit any Win16 drawing orders. if (pLocalDC->flags & RECORDING_PATH) { b = ArcTo(pLocalDC->hdcHelper, x1, y1, x2, y2, x3, y3, x4, y4) ; return(b) ; } b = bFindRadialEllipseIntersection(pLocalDC, x1, y1, x2, y2, x3, y3, x4, y4, &ptStart, &ptEnd) ; if (b == FALSE) return(b) ; b = DoLineTo(pLocalDC, ptStart.x, ptStart.y) ; if (b == FALSE) return(b) ; b = DoArc(pLocalDC, x1, y1, x2, y2, x3, y3, x4, y4) ; if (b == FALSE) return(b) ; b = DoMoveTo(pLocalDC, ptEnd.x, ptEnd.y) ; return(b) ; }
void BoundsPainter::ArcOp(const Pointf& c, const Pointf& r, double angle, double sweep, bool) { DoArc(c, r, angle, sweep, 0); }