Lines Matching defs:x_top
11724 float x_top, x_bottom;
11733 x_top = x0 + dx * (e->sy - y_top);
11736 x_top = x0;
11748 if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len)
11751 if ((int) x_top == (int) x_bottom) {
11754 int x = (int) x_top;
11757 scanline[x] += e->direction * (1.0f-(((float)x_top - (float)x) + ((float)x_bottom-(float)x))/2.0f) * (float)height;
11763 if (x_top > x_bottom)
11770 t = x_bottom; x_bottom = x_top; x_top = t;
11776 x1 = (int) x_top;
11784 /* area of the triangle (x_top,y0), (x+1,y0), (x+1,y_crossing) */
11785 scanline[x1] += area * (1.0f-((float)((float)x_top - (float)x1)+(float)(x1+1-x1))/2.0f);