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

1994/0216/carrera/screen.c (diff list | history)

1994/0215/sys/src/9/carrera/screen.c:118,1261994/0216/sys/src/9/carrera/screen.c:118,128 (short | long | prev | next)
1993/0906    
screenwin(void) 
{ 
1994/0210    
	Dac *d; 
1994/0216    
	Point p; 
	int i, y; 
1994/0210    
	ulong zbuf[16]; 
1993/1222    
 
1994/0215    
	memset(Screenvirt, 0, 3*1024*1024); 
1994/0216    
	memset((void*)Screenvirt, 0xff, 3*1024*1024); 
1994/0215    
 
1994/0210    
	gtexture(&gscreen, gscreen.r, &bgrnd, S); 
1993/0906    
	w = defont0.info[' '].width; 
1994/0215/sys/src/9/carrera/screen.c:127,1361994/0216/sys/src/9/carrera/screen.c:129,147
1993/0906    
	h = defont0.height; 
 
1994/0210    
	window.min = Pt(100, 100); 
	window.max = add(window.min, Pt(10+w*120, 10+h*60)); 
1994/0216    
	window.max = add(window.min, Pt(10+w*80, 10+h*40)); 
1993/0906    
 
1994/0216    
	gbitblt(&gscreen, add(window.min, Pt(5, 5)), &gscreen, window, F); 
1993/0906    
	gbitblt(&gscreen, window.min, &gscreen, window, Zero); 
1994/0216    
	gborder(&gscreen, window, 4, F); 
1993/0906    
	window = inset(window, 5); 
1994/0216    
	for(i = 0; i < h+6; i += 2) { 
		y = window.min.y+i; 
		gsegment(&gscreen, Pt(window.min.x, y), Pt(window.max.x, y), ~0, F); 
	} 
	p = add(window.min, Pt(10, 2)); 
	gsubfstring(&gscreen, p, &defont0, "Brazil Console ", S); 
	window.min.y += h+6; 
1993/0906    
	cursor = window.min; 
	window.max.y = window.min.y+((window.max.y-window.min.y)/h)*h; 
1993/0918    
 


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