88 TRACE(
"GdiplusStartupInput %d %p %d %d\n",
input->GdiplusVersion,
89 input->DebugEventCallback,
input->SuppressBackgroundThread,
90 input->SuppressExternalCodecs);
92 if(
input->GdiplusVersion < 1 ||
input->GdiplusVersion > 2)
95 if(
input->SuppressBackgroundThread){
165 REAL center_x, center_y, rad_x, rad_y, cos_start, cos_end,
166 sin_start, sin_end,
a, half;
171 center_x =
x1 + rad_x;
172 center_y =
y1 + rad_y;
180 a = 4.0 / 3.0 * (1 -
cos(half)) /
sin(half);
186 pt[1].X = cos_start -
a * sin_start;
187 pt[1].Y = sin_start +
a * cos_start;
191 pt[2].X = cos_end +
a * sin_end;
192 pt[2].Y = sin_end -
a * cos_end;
195 for(
i = (write_first ? 0 : 1);
i < 4;
i ++){
196 pt[
i].X =
pt[
i].X * rad_x + center_x;
197 pt[
i].Y =
pt[
i].Y * rad_y + center_y;
217 stretched += ((
REAL)revs_off) *
M_PI * 2.0;
227 REAL end_angle, start_angle, endAngle;
229 endAngle = startAngle + sweepAngle;
234 start_angle = startAngle;
238 if( sweepAngle > 0.0 )
240 if (start_angle >= endAngle)
break;
241 end_angle =
min(start_angle +
M_PI_2, endAngle);
245 if (start_angle <= endAngle)
break;
246 end_angle =
max(start_angle -
M_PI_2, endAngle);
252 start_angle +=
M_PI_2 * (sweepAngle < 0.0 ? -1.0 : 1.0);
255 if (
i == 0)
return 0;
267 return ((
color & 0x0000ff) << 16) +
269 ((
color & 0xff0000) >> 16);
279 if ((
color & 0xff000000) == 0xff000000)
return 0;
306 if((
dx == 0.0) && (
dy != 0.0))
344 FIXME(
"Unhandled unit type: %d\n",
unit);
367 FIXME(
"Unhandled unit type: %d\n",
unit);
385 xdiff = pts[2].
X - pts[0].
X;
386 ydiff = pts[2].
Y - pts[0].
Y;
389 *
x1 = pts[1].
X - tension * xdiff;
390 *
y1 = pts[1].
Y - tension * ydiff;
391 *
x2 = pts[1].
X + tension * xdiff;
392 *
y2 = pts[1].
Y + tension * ydiff;
408 if(
path->datalen == 0){
411 path->pathdata.Points = heap_alloc_zero(
path->datalen *
sizeof(
PointF));
414 path->pathdata.Types = heap_alloc_zero(
path->datalen);
415 if(!
path->pathdata.Types){
421 else if(
path->datalen -
path->pathdata.Count <
len){
436 BYTE *dst_bits,
INT dst_stride,
const BYTE *src_bits,
INT src_stride)
441 const BYTE *
src=src_bits+
y*src_stride;
478 if (!rc)
return "(null)";
484 if (!
pt)
return "(null)";
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
GLint GLint GLsizei width
GpStatus hresult_to_status(HRESULT res)
valarray< _Tp > atan2(const valarray< _Tp > &__x, const valarray< _Tp > &__y)
static UCHAR ULONG UCHAR ULONG UCHAR * output
const char * debugstr_pointf(const PointF *pt)
BITMAPINFOHEADER bmiHeader
REAL units_scale(GpUnit from, GpUnit to, REAL dpi)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
void free_installed_fonts(void)
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
void WINGDIPAPI GdipFree(void *ptr)
static const REAL mm_per_inch
void delete_element(region_element *element)
GLint GLint GLint GLint GLint x
#define DLL_PROCESS_ATTACH
static Status WINAPI NotificationHook(ULONG_PTR *token)
static REAL deg2rad(REAL degrees)
static void WINAPI NotificationUnhook(ULONG_PTR token)
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
static const REAL point_per_inch
static void * heap_realloc(void *mem, size_t len)
GpStatus WINGDIPAPI GdipDeletePath(GpPath *path)
const char * wine_dbg_sprintf(const char *format,...)
INT arc2polybezier(GpPointF *points, REAL x1, REAL y1, REAL x2, REAL y2, REAL startAngle, REAL sweepAngle)
COLORREF ARGB2COLORREF(ARGB color)
HBITMAP ARGB2BMP(ARGB color)
void convert_32bppARGB_to_32bppPARGB(UINT width, UINT height, BYTE *dst_bits, INT dst_stride, const BYTE *src_bits, INT src_stride)
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 token
png_const_structrp png_const_inforp int * unit
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
_STLP_DECLSPEC complex< float > _STLP_CALL cos(const complex< float > &)
GpStatus WINAPI GdiplusNotificationHook(ULONG_PTR *token)
REAL pixels_to_units(REAL pixels, GpUnit unit, REAL dpi)
static INT gdip_round(REAL x)
void calc_curve_bezier(const GpPointF *pts, REAL tension, REAL *x1, REAL *y1, REAL *x2, REAL *y2)
#define DLL_PROCESS_DETACH
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
const char * debugstr_rectf(const RectF *rc)
Status WINAPI GdiplusStartup(ULONG_PTR *token, const struct GdiplusStartupInput *input, struct GdiplusStartupOutput *output)
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
GLsizei const GLfloat * points
REAL gdiplus_atan2(REAL dy, REAL dx)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
static void unstretch_angle(REAL *angle, REAL rad_x, REAL rad_y)
GLint GLint GLsizei GLsizei height
_Check_return_ _CRT_JIT_INTRINSIC double __cdecl fabs(_In_ double x)
GLenum GLenum GLenum input
void init_generic_string_formats(void) DECLSPEC_HIDDEN
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
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
GLint GLint GLint GLint GLint GLint y
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
static void add_arc_part(GpPointF *pt, REAL x1, REAL y1, REAL x2, REAL y2, REAL start, REAL end, BOOL write_first)
GLclampf GLclampf GLclampf alpha
ULONG WINAPI GdiplusShutdown_wrapper(ULONG_PTR token)
void free_generic_string_formats(void) DECLSPEC_HIDDEN
WINE_DEFAULT_DEBUG_CHANNEL(gdiplus)
void *WINGDIPAPI GdipAlloc(SIZE_T size)
REAL units_to_pixels(REAL units, GpUnit unit, REAL dpi)
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
GLboolean GLboolean GLboolean GLboolean a
void WINAPI GdiplusNotificationUnhook(ULONG_PTR token)
BOOL lengthen_path(GpPath *path, INT len)
#define HeapFree(x, y, z)
void calc_curve_bezier_endp(REAL xend, REAL yend, REAL xadj, REAL yadj, REAL tension, REAL *x, REAL *y)
static BOOL heap_free(void *mem)