Lines Matching defs:dx
223 int dx, dy, incr1, incr2, D, x, y, xend, c, pixels_left;
226 dx = SL_ABSOLUTE(x2, x1, sign_x);
234 if (dy > dx) { /* chooses axis of greatest movement (make dx) */
237 SL_SWAP(dx, dy);
241 /* note error check for dx==0 should be included here */
255 /* Note dx=n implies 0 - n or (dx+1) pixels to be set */
256 /* Go round loop dx/4 times then plot last 0,1,2 or 3 pixels */
257 /* In fact (dx-1)/4 as 2 pixels are already plotted */
258 xend = (dx - 1) / 4;
259 pixels_left = (dx - 1) % 4; /* number of pixels left over at the
266 incr2 = 4 * dy - 2 * dx;
270 D = incr1 - dx;
334 c = 2 * (dy - dx);
336 D = incr1 + dx;
443 int bsq2 = b*b*2, d = bsq-asq*b+asq/4, dx = 0, dy = asq2*b;
445 while (dx<dy) {
450 x++; dx+=bsq2; d+=bsq+dx;
452 d+=(3*(asq-bsq)/2-(dx+dy))/2;
456 x++; dx+=bsq2; d+=dx;
479 int bsq2 = b*b*2, d = bsq-asq*b+asq/4, dx = 0, dy = asq2*b;
481 while (dx<dy) {
486 x++; dx+=bsq2; d+=bsq+dx;
488 d+=(3*(asq-bsq)/2-(dx+dy))/2;
492 x++; dx+=bsq2; d+=dx;