Lines Matching refs:x2
53 long x2; /* x * 2 */
294 x2 = w;
297 g = x2 - 1;
300 while ((x2 * hs) > (y2 * ws)) /* Keep |tangent| > 1 */
307 x2 -= 2;
308 g -= hs * 4 * x2;
311 if ((have_s == 0) && ((s_sin * x2) <= (y2 * s_cos)))
313 pt[0].x = (int) (x2 / 2);
318 if ((have_e == 0) && ((e_sin * x2) <= (y2 * e_cos)))
320 pt[2].x = (int) (x2 / 2);
325 pt[1].x = (int) (x2 / 2);
328 x2 = 0;
334 while ((x2 * hs) < (y2 * ws))
336 x2 += 2;
337 g += hs * 4 * (x2 + 1);
345 if ((have_s == 0) && ((s_sin * x2) >= (y2 * s_cos)))
347 pt[0].x = (int) (x2 / 2);
352 if ((have_e == 0) && ((e_sin * x2) >= (y2 * e_cos)))
354 pt[2].x = (int) (x2 / 2);
411 x2 = w;
414 g = x2 - 1;
417 while ((x2 * hs) > (y2 * ws)) /* Keep |tangent| > 1 */
419 if ((s_sin * x2) <= (y2 * s_cos))
427 x2 -= 2;
428 g -= hs * 4 * x2;
432 lx2 = x2;
445 x2 -= 2;
446 g -= hs * 4 * x2;
459 for (x = (int) (lx2 / 2); x <= (int) (x2 / 2); x++)
476 x2 = 0;
482 while ((x2 * hs) < (y2 * ws))
484 x2 += 2;
485 g += hs * 4 * (x2 + 1);
493 if ((e_sin * x2) >= (y2 * e_cos))
497 lx2 = x2;
503 while (x2 < (2 * pt[0].x))
505 x2 += 2;
506 g += hs * 4 * (x2 + 1);
523 x = (int) (x2 / 2);
547 long x2; /* x * 2 */
633 x2 = w;
636 g = x2 - 1;
639 while ((x2 * hs) > (y2 * ws)) /* Keep |tangent| > 1 */
646 x2 -= 2;
647 g -= hs * 4 * x2;
650 if ((a_sin * x2) <= (y2 * a_cos))
652 pt.x = (int) (x2 / 2);
660 x2 = 0;
666 while ((x2 * hs) < (y2 * ws))
668 x2 += 2;
669 g += hs * 4 * (x2 + 1);
677 if ((a_sin * x2) >= (y2 * a_cos))
679 pt.x = (int) (x2 / 2);