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

1990/0914/gnot/screen.c (diff list | history)

1990/0912/sys/src/9/gnot/screen.c:13,191990/0914/sys/src/9/gnot/screen.c:13,18 (short | long | prev | next)
1990/03091    
#define	MINX	8 
 
1990/0902    
extern	GFont	defont0; 
extern	GFont	defont1; 
GFont		*defont; 
1990/03091    
 
struct{ 
1990/0912/sys/src/9/gnot/screen.c:42,521990/0914/sys/src/9/gnot/screen.c:41,49
1990/05313    
	/* 
	 * Read HEX switch to set ldepth 
	 */ 
	if(*(uchar*)MOUSE & (1<<4)){ 
1990/0914    
	if(*(uchar*)MOUSE & (1<<4)) 
1990/0912    
		gscreen.ldepth = 1; 
1990/05313    
		defont = &defont1; 
	}else 
		defont = &defont0; 
1990/0914    
	defont = &defont0;	/* save space; let bitblt do the conversion work */ 
1990/0912    
	gbitblt(&gscreen, Pt(0, 0), &gscreen, gscreen.r, 0); 
1990/03091    
	out.pos.x = MINX; 
	out.pos.y = 0; 
1990/0912/sys/src/9/gnot/screen.c:81,871990/0914/sys/src/9/gnot/screen.c:78,84
1990/03091    
			screenputc('\n'); 
		buf[0] = c&0x7F; 
		buf[1] = 0; 
1990/0912    
		out.pos = gstring(&gscreen, out.pos, defont, buf, S); 
1990/0914    
		out.pos = gbitbltstring(&gscreen, out.pos, defont, buf, S); 
1990/03091    
	} 
} 
 


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