There is such a function
void circle(HDC hdc, int x, int y) { //int x=0; //int y=R; int d=1-R; int delta1=3; int delta2=-2*R+5; while(y>=0) { if(d<0) { d+=delta1; delta1+=2; delta2+=2; x++; } else { d+=delta2; delta2+=4; delta1+=2; x++; y--; } SetPixel(hdc, x, y, 0); } }
She has to draw 1/8 of a circle, but in addition to this, an extra line is drawn. So how to get rid of it?