Home | History | Annotate | Download | only in examples

Lines Matching defs:x2

97 static void drawline(unsigned char* buffer,int rowstride,int bpp,int x1,int y1,int x2,int y2)
100 i=x1-x2; j=y1-y2;
109 if(y1>y2) { i=y2; y2=y1; y1=i; i=x2; x2=x1; x1=i; }
112 buffer[j*rowstride+(x1+(j-y1)*(x2-x1)/(y2-y1))*bpp+i]=0xff;
114 if(x1>x2) { i=y2; y2=y1; y1=i; i=x2; x2=x1; x1=i; }
115 for(i=x1;i<=x2;i++)
117 buffer[(y1+(i-x1)*(y2-y1)/(x2-x1))*rowstride+i*bpp+j]=0xff;
129 int i,j,x1,x2,y1,y2;
141 x2=x+buttonMask; if(x2>maxx) x2=maxx;
145 for(i=x1*bpp;i<x2*bpp;i++)
148 rfbMarkRectAsModified(cl->screen,x1,y1,x2,y2);
200 int x1=cd->oldx,y1=cd->oldy,x2,y2;
202 rfbFontBBox(&radonFont,(char)key,&x1,&y1,&x2,&y2);
203 rfbMarkRectAsModified(cl->screen,x1,y1,x2-1,y2-1);