27#define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
28#define expectf(expected, got) ok(fabs(got - expected) < 0.1, "Expected %.2f, got %.2f\n", expected, got)
42 for (gpversion=1; gpversion<256; gpversion++)
47 "GdiplusStartup returned %x\n",
status);
56 ok(gpversion > 0 && gpversion <= 2,
"unexpected gdiplus version %i\n", gpversion);
57 trace(
"gdiplus version is %i\n", gpversion);
74 ok(pen ==
NULL,
"Expected pen to be NULL\n");
78 ok(pen !=
NULL,
"Expected pen to be initialized\n");
96 ok(pen ==
NULL,
"Expected pen to be NULL\n");
106 ok(brush !=
NULL,
"Expected brush to be initialized\n");
110 ok(pen !=
NULL,
"Expected pen to be initialized\n");
150 ok(brush != brush2,
"Expected to get a clone, not a copy of the reference\n");
178 dashes[7] = dashes[8] = dashes[9] = dashes[10] = dashes[11] = 0.0;
232 "Expected OutOfMemory or InvalidParameter, got %.8x\n",
status);
236 "Expected OutOfMemory or InvalidParameter, got %.8x\n",
status);
282 ok(custom ==
NULL,
"Expect CustomCap == NULL\n");
287 ok(custom ==
NULL,
"Expect CustomCap == NULL\n");
346 static const REAL testvalues[] = {0.2, 0.4, 0.6, 0.8};
365 ok(
count == 0,
"Unexpected compound count %d\n",
count);
387 ok(
count == 4,
"Unexpected compound count %d\n",
count);
int CDECL _controlfp_s(unsigned int *cur, unsigned int newval, unsigned int mask)
#define GetProcAddress(x, y)
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill *sf, ARGB argb)
GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF *startpoint, GDIPCONST GpPointF *endpoint, ARGB startcolor, ARGB endcolor, GpWrapMode wrap, GpLineGradient **line)
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB color, GpSolidFill **sf)
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill *sf, ARGB *argb)
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush *brush, GpBrushType *type)
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22, REAL dx, REAL dy, GpMatrix **matrix)
GpStatus WINGDIPAPI GdipGetMatrixElements(GDIPCONST GpMatrix *matrix, REAL *out)
GpStatus WINGDIPAPI GdipSetMatrixElements(GpMatrix *matrix, REAL m11, REAL m12, REAL m21, REAL m22, REAL dx, REAL dy)
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix *matrix)
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix)
GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, REAL width, GpUnit unit, GpPen **pen)
GpStatus WINGDIPAPI GdipGetPenColor(GpPen *pen, ARGB *argb)
GpStatus WINGDIPAPI GdipScalePenTransform(GpPen *pen, REAL sx, REAL sy, GpMatrixOrder order)
GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen *pen, GpBrush *brush)
GpStatus WINGDIPAPI GdipDeletePen(GpPen *pen)
GpStatus WINGDIPAPI GdipCreatePen2(GpBrush *brush, REAL width, GpUnit unit, GpPen **pen)
GpStatus WINGDIPAPI GdipMultiplyPenTransform(GpPen *pen, GDIPCONST GpMatrix *matrix, GpMatrixOrder order)
GpStatus WINGDIPAPI GdipSetPenDashArray(GpPen *pen, GDIPCONST REAL *dash, INT count)
GpStatus WINGDIPAPI GdipGetPenCustomEndCap(GpPen *pen, GpCustomLineCap **customCap)
GpStatus WINGDIPAPI GdipResetPenTransform(GpPen *pen)
GpStatus WINGDIPAPI GdipSetPenDashStyle(GpPen *pen, GpDashStyle dash)
GpStatus WINGDIPAPI GdipTranslatePenTransform(GpPen *pen, REAL dx, REAL dy, GpMatrixOrder order)
GpStatus WINGDIPAPI GdipGetPenDashArray(GpPen *pen, REAL *dash, INT count)
GpStatus WINGDIPAPI GdipGetPenBrushFill(GpPen *pen, GpBrush **brush)
GpStatus WINGDIPAPI GdipGetPenCustomStartCap(GpPen *pen, GpCustomLineCap **customCap)
GpStatus WINGDIPAPI GdipSetPenTransform(GpPen *pen, GpMatrix *matrix)
GpStatus WINGDIPAPI GdipRotatePenTransform(GpPen *pen, REAL angle, GpMatrixOrder order)
GpStatus WINGDIPAPI GdipSetPenCustomEndCap(GpPen *pen, GpCustomLineCap *customCap)
GpStatus WINGDIPAPI GdipGetPenCompoundCount(GpPen *pen, INT *count)
GpStatus WINGDIPAPI GdipSetPenCompoundArray(GpPen *pen, GDIPCONST REAL *dash, INT count)
GpStatus WINGDIPAPI GdipGetPenTransform(GpPen *pen, GpMatrix *matrix)
GpStatus WINGDIPAPI GdipGetPenFillType(GpPen *pen, GpPenType *type)
GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen *pen, GpDashStyle *dash)
GpStatus WINGDIPAPI GdipSetPenCustomStartCap(GpPen *pen, GpCustomLineCap *customCap)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Status WINAPI GdiplusStartup(ULONG_PTR *token, const struct GdiplusStartupInput *input, struct GdiplusStartupOutput *output)
void WINAPI GdiplusShutdown(ULONG_PTR)
@ UnsupportedGdiplusVersion
GLuint GLuint GLsizei GLenum type
GLuint GLuint GLsizei count
GLboolean GLboolean GLboolean b
GLboolean GLenum GLenum GLvoid * values
GLboolean GLboolean GLboolean GLboolean a
GLsizei const GLfloat * points
#define expect(expected, got)
static void test_startup(void)
static void test_brushfill(void)
static void test_customcap(void)
static void test_compoundarray(void)
static void test_penfilltype(void)
static void test_constructor_destructor2(void)
static void test_dasharray(void)
#define expectf(expected, got)
static void test_constructor_destructor(void)
static void get_pen_transform(GpPen *pen, REAL *values)
static void test_transform(void)