37 #define BEZIERSHIFTBITS 4 38 #define BEZIERSHIFTUP(x) ((x)<<BEZIERSHIFTBITS) 39 #define BEZIERPIXEL BEZIERSHIFTUP(1) 40 #define BEZIERSHIFTDOWN(x) (((x)+(1<<(BEZIERSHIFTBITS-1)))>>BEZIERSHIFTBITS) 42 #define BEZIERMAXDEPTH 8 46 #define BEZIER_INITBUFSIZE (150) 52 #define BEZIERMIDDLE(Mid, P1, P2) \ 53 (Mid).x=((P1).x+(P2).x + 1)/2;\ 54 (Mid).y=((P1).y+(P2).y + 1)/2; 67 dx=Points[3].
x-Points[0].
x;
68 dy=Points[3].
y-Points[0].
y;
71 if(Points[1].
x < Points[0].
x){
72 if(Points[1].
x < Points[3].
x)
75 if(Points[1].
x > Points[3].
x)
77 if(Points[2].
x < Points[0].
x){
78 if(Points[2].
x < Points[3].
x)
81 if(Points[2].
x > Points[3].
x)
94 if(Points[1].
y < Points[0].
y){
95 if(Points[1].
y < Points[3].
y)
98 if(Points[1].
y > Points[3].
y)
100 if(Points[2].
y < Points[0].
y){
101 if(Points[2].
y < Points[3].
y)
104 if(Points[2].
y > Points[3].
y)
124 if(*nPtsOut == *dwOut) {
146 Points2[3]=Points[3];
155 Points2[0]=Points[3];
206 for(
i = 0;
i < 4;
i++) {
212 DPRINT(
"Produced %d points\n", *nPtsOut);
static void GDI_InternalBezier(POINT *Points, POINT **PtsOut, INT *dwOut, INT *nPtsOut, INT level)
GLuint GLuint GLsizei count
#define BEZIER_INITBUFSIZE
GLint GLint GLint GLint GLint x
void Bezier(HDC hdc, POINT p1, POINT p2, POINT p3, POINT p4, COLORREF color, int thickness)
#define BEZIERSHIFTDOWN(x)
POINT * GDI_Bezier(const POINT *Points, INT count, INT *nPtsOut)
#define ExAllocatePoolWithTag(hernya, size, tag)
#define memcpy(s1, s2, n)
static BOOL BezierCheck(int level, POINT *Points)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLint GLint GLint GLint GLint GLint y
#define BEZIERMIDDLE(Mid, P1, P2)