plan 9 kernel history: overview | file list | diff list

1993/1026/port/devmouse.c (diff list | history)

1993/1009/sys/src/9/port/devmouse.c:54,591993/1026/sys/src/9/port/devmouse.c:54,60 (short | long | prev | next)
1993/1006    
	Lock; 
	int	visible;	/* on screen */ 
	int	disable;	/* from being used */ 
1993/1026    
	int	frozen;	/* from being used */ 
1993/1006    
	Rectangle r;		/* location */ 
}; 
 
1993/1009/sys/src/9/port/devmouse.c:379,3841993/1026/sys/src/9/port/devmouse.c:380,412
1993/1006    
	} 
	if(hwcurs) 
		hwcursset(set.base, clr.base, cursor.offset.x, cursor.offset.y); 
1993/1026    
	unlock(&cursor); 
} 
 
void 
cursorlock(Rectangle r) 
{ 
	if(hwcurs) 
		return; 
	lock(&cursor); 
	if(rectXrect(cursor.r, r)){ 
		cursoroff(0); 
		cursor.frozen = 1; 
	} 
	cursor.disable++; 
	unlock(&cursor); 
} 
 
void 
cursorunlock(void) 
{ 
	if(hwcurs) 
		return; 
	lock(&cursor); 
	cursor.disable--; 
	if(cursor.frozen) 
		cursoron(0); 
	cursor.frozen = 0; 
1993/1006    
	unlock(&cursor); 
} 
 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)