--- mstools/samples/gdidemo/poly.h 2018/08/09 18:20:01 1.1.1.1 +++ mstools/samples/gdidemo/poly.h 2018/08/09 18:21:47 1.1.1.2 @@ -24,6 +24,8 @@ typedef WORD WPARAM; #define MAX_BEZIER 80 #define VELMAX 10 #define VELMIN 2 +#define BEZ_CURVES 1 //Number of Curves in the Bezier +#define BEZ_PTS 3*BEZ_CURVES+1 //Number of Points is the #Curves * 3 + 1 /* @@ -32,7 +34,7 @@ typedef WORD WPARAM; */ typedef struct _BEZBUFFER { - POINT pPts[4]; + POINT pPts[BEZ_PTS]; } BEZBUFFER; typedef BEZBUFFER *PBEZBUFFER; typedef BEZBUFFER NEAR *NPBEZBUFFER; @@ -48,7 +50,7 @@ typedef struct _POLYDATA int nBezTotal; int nBezCurr; int nColor; - POINT pVel[4]; + POINT pVel[BEZ_PTS]; HANDLE hBezBuffer; } POLYDATA; typedef POLYDATA *PPOLYDATA;