Lines Matching refs:y2
21 int x1, int y1, int x2, int y2,
34 SDLTest_AssertCheck(x1 == x1Ref && y1 == y1Ref && x2 == x2Ref && y2 == y2Ref,
36 x1, y1, x2, y2,
54 int x2, y2;
65 y2 = 15;
67 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
68 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 0, 15, 31, 15);
73 y2 = yBottom;
75 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
76 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 15, 0, 15, 31);
81 y2 = 2*refRect.h;
83 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
84 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 0, 0, 31, 31);
89 y2 = -refRect.h;
91 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
92 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 31, 31, 0, 0);
97 y2 = -1;
99 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
100 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 0, 31, 31, 0);
105 y2 = 32;
107 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
108 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 31, 0, 0, 31);
125 int x2, y2;
140 y2 = y2Ref;
142 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
143 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, x1Ref, y1Ref, x2Ref, y2Ref);
148 y2 = ymax;
150 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
151 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, x1Ref, y1Ref, xmax, ymax);
156 y2 = y2Ref;
158 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
159 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, xmin, ymin, x2Ref, y2Ref);
164 y2 = ymax;
166 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
167 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, xmin, ymin, xmax, ymax);
172 y2 = ymin;
174 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
175 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, xmin, ymax, xmax, ymin);
192 int x2, y2;
203 y2 = 31;
205 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
206 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, xLeft, 0, xLeft, 31);
211 y2 = 31;
213 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
214 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, xRight, 0, xRight, 31);
219 y2 = yTop;
221 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
222 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, 0, yTop, 31, yTop);
227 y2 = yBottom;
229 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
230 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, 0, yBottom, 31, yBottom);
247 int x2, y2, x2Ref, y2Ref;
262 y2 = y2Ref;
264 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
265 _validateIntersectRectAndLineResults(intersected, SDL_FALSE, &rect, &refRect, x1, y1, x2, y2, x1Ref, y1Ref, x2Ref, y2Ref);
283 int y2 = 2 * rect.h;
286 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2);
289 intersected = SDL_IntersectRectAndLine((SDL_Rect *)NULL, &x1, &y1, &x2, &y2);
291 intersected = SDL_IntersectRectAndLine(&rect, (int *)NULL, &y1, &x2, &y2);
293 intersected = SDL_IntersectRectAndLine(&rect, &x1, (int *)NULL, &x2, &y2);
295 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, (int *)NULL, &y2);