IntGdiMoveToEx(DC *dc,
int X,
int Y,
- LPPOINT Point,
- BOOL BypassPath)
+ LPPOINT Point)
{
- BOOL PathIsOpen;
PDC_ATTR pdcattr = dc->pdcattr;
if ( Point )
{
CoordLPtoDP(dc, &pdcattr->ptfxCurrent); // Update fx
pdcattr->ulDirty_ &= ~(DIRTY_PTLCURRENT|DIRTY_PTFXCURRENT|DIRTY_STYLESTATE);
- if (BypassPath) return TRUE;
-
- PathIsOpen = PATH_IsPathOpen(dc->dclevel);
-
- if ( PathIsOpen )
- return PATH_MoveTo ( dc );
-
return TRUE;
}
EngSetLastError(ERROR_INVALID_HANDLE);
return FALSE;
}
- Ret = IntGdiMoveToEx(dc, x, y, pptOut, TRUE);
+ Ret = IntGdiMoveToEx(dc, x, y, pptOut);
DC_UnlockDc(dc);
return Ret;
}
if (PATH_IsPathOpen(dc->dclevel))
{
Ret = PATH_LineTo(dc, XEnd, YEnd);
- if (Ret)
- {
- // FIXME: PATH_LineTo should maybe do this? No
- pdcattr->ptlCurrent.x = XEnd;
- pdcattr->ptlCurrent.y = YEnd;
- pdcattr->ptfxCurrent = pdcattr->ptlCurrent;
- CoordLPtoDP(dc, &pdcattr->ptfxCurrent); // Update fx
- pdcattr->ulDirty_ &= ~(DIRTY_PTLCURRENT|DIRTY_PTFXCURRENT|DIRTY_STYLESTATE);
- }
- return Ret;
}
else
{
return FALSE;
}
- if (PATH_IsPathOpen(dc->dclevel))
- return PATH_Polyline(dc, pt, Count);
-
DC_vPrepareDCsForBlit(dc, NULL, NULL, NULL);
psurf = dc->dclevel.pSurface;
pc = PolyPoints;
if (PATH_IsPathOpen(dc->dclevel))
+ {
return PATH_PolyPolyline( dc, pt, PolyPoints, Count );
-
+ }
for (i = 0; i < Count; i++)
{
ret = IntGdiPolyline ( dc, pts, *pc );
}
if (num_pts >= 2) IntGdiPolyline( dc, line_pts, num_pts );
- IntGdiMoveToEx( dc, line_pts[num_pts - 1].x, line_pts[num_pts - 1].y, NULL, TRUE );
+ IntGdiMoveToEx( dc, line_pts[num_pts - 1].x, line_pts[num_pts - 1].y, NULL );
result = TRUE;
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
pdc = DC_LockDc(hdc);
if (!pdc) return FALSE;
- Ret = IntGdiMoveToEx(pdc, x, y, &Point, TRUE);
+ Ret = IntGdiMoveToEx(pdc, x, y, &Point);
if (Ret && pptOut)
{