summaryrefslogtreecommitdiffstats
path: root/private/mvdm/softpc.new/host/inc/hostgrph.h
blob: be4eae23996796c716d14e4f3313e8604ca14a13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * SccsID @(#)host_graph.h	1.8 12/3/90 Copyright Insignia Solutions Ltd.
 */

extern long pcwindow;
extern int terminal_type;

/* values for terminal type */
#define TERMINAL_TYPE_DUMB	0
#define TERMINAL_TYPE_SUN	1
#define TERMINAL_TYPE_X11	2
#define TERMINAL_TYPE_DEFAULT	TERMINAL_TYPE_SUN

/*
 * Bit masks for attribute bytes
 */

#define BLINK 		0x80	/* Blink bit		*/
#define BOLD		0x08	/* Bold bit		*/
#define BACKGROUND	0x70    /* Background bits	*/
#define FOREGROUND	0x07    /* Foreground bits	*/

#define MAX_FONT_PATHNAME_LEN	40

 /***********************************************************/
 /* In gfx_update.c/herc_update_screen(), the inner loop of */
 /*  the routine multiplies the row by the char height to   */
 /*  obtain the row to rop the screen data to. Since we     */
 /*  dont need to do this, we dont want an inner loop       */
 /*  performace hit so we remove the multiplication. But,   */
 /*  in keeping with the generic base file rule, we put     */
 /*  the define here in a host file on the Advice of        */
 /*  Andrew.                                                */
 /***********************************************************/

#ifndef SUN_VA
#define HOST_HERC_PAINT_OFFSET(row)	(row * get_char_height())
#else
#define HOST_HERC_PAINT_OFFSET(row)	(row)
#endif /* SUN_VA */