Lines Matching defs:x2
98 static void drawline(unsigned char* buffer,int rowstride,int bpp,int x1,int y1,int x2,int y2)
101 i=x1-x2; j=y1-y2;
110 if(y1>y2) { i=y2; y2=y1; y1=i; i=x2; x2=x1; x1=i; }
113 buffer[j*rowstride+(x1+(j-y1)*(x2-x1)/(y2-y1))*bpp+i]=0xff;
115 if(x1>x2) { i=y2; y2=y1; y1=i; i=x2; x2=x1; x1=i; }
116 for(i=x1;i<=x2;i++)
118 buffer[(y1+(i-x1)*(y2-y1)/(x2-x1))*rowstride+i*bpp+j]=0xff;
130 int i,j,x1,x2,y1,y2;
142 x2=x+buttonMask; if(x2>maxx) x2=maxx;
146 for(i=x1*bpp;i<x2*bpp;i++)
149 rfbMarkRectAsModified(cl->screen,x1,y1,x2,y2);
201 int x1=cd->oldx,y1=cd->oldy,x2,y2;
203 rfbFontBBox(&radonFont,(char)key,&x1,&y1,&x2,&y2);
204 rfbMarkRectAsModified(cl->screen,x1,y1,x2-1,y2-1);