예제 #1
0
int
XRectInRegion(Region region, int rx, int ry, unsigned int rwidth,
	unsigned int rheight)
{
	/* note: this is dependent on NX and X11 return values identical*/
	return GrRectInRegion(region->rid, rx, ry, rwidth, rheight);
}
예제 #2
0
static void
GrRectInRegionWrapper(void *r)
{
	nxRectInRegionReq *req = r;
	unsigned short ret_value;
	
	ret_value = (unsigned short)GrRectInRegion(req->regionid,
		req->x, req->y, req->w, req->h);
		
	GsWriteType(current_fd, GrNumRectInRegion);
	GsWrite(current_fd, &ret_value, sizeof(ret_value));
}
예제 #3
0
파일: nxroach.c 프로젝트: EPiCS/reconos_v2
/*
   Mark hidden roaches.
*/
int
MarkHiddenRoaches(void)
{
    int rx;
    Roach *r;
    int nVisible;
    
    nVisible = 0;
    for (rx=0; rx<curRoaches; rx++) {
	r = &roaches[rx];
	
	if (!r->hidden) {
	    if (r->intX > 0 && GrRectInRegion(rootVisible, r->intX, r->intY,
			    r->rp->width, r->rp->height) == MWRECT_OUT) {
		r->hidden = 1;
	    }
	    else {
		nVisible++;
	    }
	}
    }
    
    return nVisible;
}