Lines Matching refs:fy
185 float fy = flip * viewport->scale[1] * -1.0 + viewport->translate[1];
199 fy,
223 prescale.translate[1] = fh - 1 + fy * 2;
225 fy -= fh;
237 if (fy < 0) {
239 prescale.translate[1] -= fy;
242 prescale.translate[1] += fy;
244 prescale.scale[1] *= fh / (fh + fy);
245 fh += fy;
246 fy = 0;
257 if (fy + fh > fb_height) {
258 prescale.scale[1] *= fh / (fb_height - fy);
260 float in = fb_height - fy; /* number of vp pixels inside view */
261 float out = fy + fh - fb_height; /* number of vp pixels out of view */
262 prescale.translate[1] += fy * out / in;
265 prescale.translate[1] -= fy * (fh / (fb_height - fy));
266 prescale.translate[1] += fy;
268 fh = fb_height - fy;
272 fw = fh = fx = fy = 0;
278 /* D3D viewport is integer space. Convert fx,fy,etc. to
285 rect.y = fy;
292 fabs((float)rect.y - fy),