[PATCH 1/3] gdi32: Set current position properly after ArcTo.
Alexandre Julliard
julliard at winehq.org
Wed Jun 20 05:09:38 CDT 2007
Misha Koshelev <mk144210 at bcm.edu> writes:
> + if (!PATH_IsPathOpen(dc->path))
> {
> - angle = atan2(
> - ((yend-ycenter)/height),
> - ((xend-xcenter)/width));
> - MoveToEx(hdc, GDI_ROUND(xcenter+(cos(angle)*xradius)),
> - GDI_ROUND(ycenter+(sin(angle)*yradius)), NULL);
> + if (result && dc->funcs->pMoveTo) result = dc->funcs->pMoveTo(dc->physDev,end.x,end.y);
It would be cleaner to add a PATH_ArcTo function instead of having
multiple PATH_IsPathOpen checks in the generic function.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list