sync with OpenBSD -current

This commit is contained in:
purplerain 2025-01-10 01:40:29 +00:00
parent 4b49aefbb1
commit 1fd36b57f8
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
945 changed files with 81965 additions and 59988 deletions

View file

@ -40,13 +40,12 @@ TranslatePoints(TPoint *points, int n_points,
Transform *t, int mode)
{
XPoint *xpoints;
int i;
double xoff = 0.0, yoff = 0.0;
xpoints = (XPoint *) malloc ((unsigned)n_points * sizeof (*xpoints));
if (!xpoints)
return NULL;
for (i = 0; i < n_points; i++) {
for (int i = 0; i < n_points; i++) {
xpoints[i].x = Xx(points[i].x + xoff, points[i].y + yoff, t);
xpoints[i].y = Xy(points[i].x + xoff, points[i].y + yoff, t);
if (mode == CoordModePrevious) {