Lines Matching full:dx
187 int dx, dy, incr1, incr2, D, x, y, xend, c, pixels_left; in VGLLine() local
190 dx = SL_ABSOLUTE(x2, x1, sign_x); in VGLLine()
198 if (dy > dx) { /* chooses axis of greatest movement (make dx) */ in VGLLine()
201 SL_SWAP(dx, dy); in VGLLine()
205 /* note error check for dx==0 should be included here */ in VGLLine()
219 /* Note dx=n implies 0 - n or (dx+1) pixels to be set */ in VGLLine()
220 /* Go round loop dx/4 times then plot last 0,1,2 or 3 pixels */ in VGLLine()
221 /* In fact (dx-1)/4 as 2 pixels are already plotted */ in VGLLine()
222 xend = (dx - 1) / 4; in VGLLine()
223 pixels_left = (dx - 1) % 4; /* number of pixels left over at the in VGLLine()
230 incr2 = 4 * dy - 2 * dx; in VGLLine()
234 D = incr1 - dx; in VGLLine()
298 c = 2 * (dy - dx); in VGLLine()
300 D = incr1 + dx; in VGLLine()
407 int bsq2 = b*b*2, d = bsq-asq*b+asq/4, dx = 0, dy = asq2*b; in VGLEllipse() local
409 while (dx<dy) { in VGLEllipse()
414 x++; dx+=bsq2; d+=bsq+dx; in VGLEllipse()
416 d+=(3*(asq-bsq)/2-(dx+dy))/2; in VGLEllipse()
420 x++; dx+=bsq2; d+=dx; in VGLEllipse()
443 int bsq2 = b*b*2, d = bsq-asq*b+asq/4, dx = 0, dy = asq2*b; in VGLFilledEllipse() local
445 while (dx<dy) { in VGLFilledEllipse()
450 x++; dx+=bsq2; d+=bsq+dx; in VGLFilledEllipse()
452 d+=(3*(asq-bsq)/2-(dx+dy))/2; in VGLFilledEllipse()
456 x++; dx+=bsq2; d+=dx; in VGLFilledEllipse()