git-svn-id: svn://code.dyne.org/veejay/trunk@1015 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2007-08-29 11:53:48 +00:00
parent 2755c4c419
commit 2e83daa08e

View File

@@ -1879,8 +1879,6 @@ void viewport_transform_coords(
point_map( v->T, contour[i]->x, contour[i]->y, &dx1, &dy1 ); point_map( v->T, contour[i]->x, contour[i]->y, &dx1, &dy1 );
v->buf[j + 0] = (int)((dx1/ (float) v->w) * 1000.0f ); v->buf[j + 0] = (int)((dx1/ (float) v->w) * 1000.0f );
v->buf[j + 1] = (int)((dy1/ (float) v->h) * 1000.0f ); v->buf[j + 1] = (int)((dy1/ (float) v->h) * 1000.0f );
// v->buf[j+0] = dx1 / (v->w / 1000.0f );
// v->buf[j+1] = dy1 / (v->h / 1000.0f );
j+=2; j+=2;
} }
@@ -1890,8 +1888,6 @@ void viewport_transform_coords(
point_map( v->T, points[i]->x, points[i]->y, &dx1,&dy1 ); point_map( v->T, points[i]->x, points[i]->y, &dx1,&dy1 );
v->buf[j + 0] = (int) ( ( dx1/(float) v->w) * 1000.0f ); v->buf[j + 0] = (int) ( ( dx1/(float) v->w) * 1000.0f );
v->buf[j + 1] = (int) ( ( dy1/(float) v->h) * 1000.0f ); v->buf[j + 1] = (int) ( ( dy1/(float) v->h) * 1000.0f );
// v->buf[j + 0] = dx1 / (v->w / 1000.0f);
// v->buf[j + 1] = dy1 / (v->h / 1000.0f);
j += 2; j += 2;
} }
int payload = ((n*2)+(res * 2) + 6) * sizeof(int); int payload = ((n*2)+(res * 2) + 6) * sizeof(int);