コード例 #1
0
ファイル: line.c プロジェクト: 10084462/FreeRDP
/**
 * Draw multiple series of connected line segments
 * @param hdc device context
 * @param lppt array of points
 * @param lpdwPolyPoints array of numbers of points per series
 * @param cCount count of entries in lpdwPolyPoints
 * @return
 */
int gdi_PolyPolyline(HGDI_DC hdc, GDI_POINT *lppt, int *lpdwPolyPoints, int cCount)
{
	int cPoints;
	int i, j = 0;

	for (i = 0; i < cCount; i++)
	{
		cPoints = lpdwPolyPoints[i];
		gdi_Polyline(hdc, &lppt[j], cPoints);
		j += cPoints;
	}

	return 1;
}
コード例 #2
0
ファイル: line.c プロジェクト: Russkowski/FreeRDP
/**
 * Draw multiple series of connected line segments
 * @param hdc device context
 * @param lppt array of points
 * @param lpdwPolyPoints array of numbers of points per series
 * @param cCount count of entries in lpdwPolyPoints
 * @return nonzero on success, 0 otherwise
 */
BOOL gdi_PolyPolyline(HGDI_DC hdc, GDI_POINT *lppt, int *lpdwPolyPoints, DWORD cCount)
{
    int cPoints;
    DWORD i, j = 0;

    for (i = 0; i < cCount; i++)
    {
        cPoints = lpdwPolyPoints[i];
        if (!gdi_Polyline(hdc, &lppt[j], cPoints))
            return FALSE;
        j += cPoints;
    }

    return TRUE;
}