Annotation of 43BSDTahoe/new/X/libibm/libsrc/globals.c, revision 1.1.1.1

1.1       root        1: #ifndef lint
                      2: static char *rcsid_globals_c = "$Header: globals.c,v 10.2 86/12/17 18:06:15 swick Exp $";
                      3: #endif lint
                      4: /* Copyright 1985 Massachusetts Institute of Technology */
                      5: 
                      6: /*
                      7:  * globals.c - Various global data
                      8:  *
                      9:  *     global defintions for device dependent code
                     10:  *
                     11:  *     Changes and additions by:
                     12:  *
                     13:  *             Scott Bates
                     14:  *             Brown University
                     15:  *             IRIS, Box 1946
                     16:  *                     Providence, RI 02912
                     17:  *
                     18:  *
                     19:  *             Copyright (c) 1986 Brown University
                     20:  *
                     21:  * Permission to use, copy, modify and distribute this software and its
                     22:  * documentation for any purpose and without fee is hereby granted, provided
                     23:  * that the above copyright notice appear in all copies, and that both
                     24:  * that copyright notice and this permission notice appear in supporting
                     25:  * documentation, and that the name of Brown University not be used in
                     26:  * advertising or publicity pertaining to distribution of the software
                     27:  * without specific, written prior permission. Brown University makes no
                     28:  * representations about the suitability of this software for any purpose.
                     29:  * It is provided "as-is" without express or implied warranty.
                     30:  */
                     31: 
                     32: #include "private.h"
                     33: 
                     34: /*
                     35:  * Foreground/background function map
                     36:  */
                     37: 
                     38: char FBMap[] = {
                     39:        0x00, 0x00, 0x00, 0x00, 0x05, 0x05, 0x05, 0x05,
                     40:         0x0A, 0x0A, 0x0A, 0x0A, 0x0F, 0x0F, 0x0F, 0x0F,
                     41: 
                     42:         0x00, 0x04, 0x08, 0x0C, 0x01, 0x05, 0x09, 0x0D,
                     43:         0x02, 0x06, 0x0A, 0x0E, 0x03, 0x07, 0x0B, 0x0F,
                     44: 
                     45:         0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
                     46:         0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
                     47: 
                     48:         0x00, 0x05, 0x0A, 0x0F, 0x00, 0x05, 0x0A, 0x0F,
                     49:         0x00, 0x05, 0x0A, 0x0F, 0x00, 0x05, 0x0A, 0x0F
                     50: };
                     51: 
                     52: /*
                     53:  * Single source function map
                     54:  */
                     55: 
                     56: char SSMap[] = {
                     57:        0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
                     58:        0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
                     59: 
                     60:        0x00, 0x04, 0x08, 0x0C, 0x01, 0x05, 0x09, 0x0D,
                     61:        0x02, 0x06, 0x0A, 0x0E, 0x03, 0x07, 0x0B, 0x0F,
                     62: };
                     63: 
                     64: /*
                     65:  * Constant tiles
                     66:  */
                     67: 
                     68: u_short AllZeros[TILE_SIZE] = {
                     69:        0x0000, 0x0000, 0x0000, 0x0000, 
                     70:        0x0000, 0x0000, 0x0000, 0x0000, 
                     71:        0x0000, 0x0000, 0x0000, 0x0000, 
                     72:        0x0000, 0x0000, 0x0000, 0x0000, 
                     73: };
                     74: 
                     75: u_short AllOnes[TILE_SIZE] = {
                     76:        0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
                     77:        0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
                     78:        0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
                     79:        0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
                     80: };
                     81: 
                     82: u_short *ConstantTiles[2] = {
                     83:        AllZeros,
                     84:        AllOnes,
                     85: };
                     86: 
                     87: /*
                     88:  * Constant pixmaps
                     89:  */
                     90: 
                     91: PIXMAP constpix0 = {1, 1, 1, 1, ConstantPixmap, (caddr_t) AllZeros};
                     92: PIXMAP constpix1 = {1, 1, 1, 1, ConstantPixmap, (caddr_t) AllOnes};
                     93: 
                     94: /*
                     95:  * Bitmap representing the screen (frame buffer)
                     96:  */
                     97: 
                     98: BITMAP pbm;
                     99: 
                    100: /*
                    101:  * Bitmap for offscreen text.
                    102:  */
                    103: 
                    104: u_short TextBuffer[TEXT_BUFFER_SIZE];
                    105: BITMAP txtbm = {MAX_OFFSCR_WD, MAX_OFFSCR_HT, 0, 0, (caddr_t) TextBuffer};
                    106: 
                    107: /*
                    108:  * File descriptor for open display
                    109:  */
                    110: 
                    111: int xdev = -1;
                    112: 
                    113: /*
                    114:  * Pointer to shared memory area
                    115:  */
                    116: 
                    117: XIoAddrAddr XAddr;
                    118: 
                    119: /*
                    120:  * File descriptor for Mouse: RAM 12/12/86  
                    121:  */
                    122: 
                    123: int mdev = -1;
                    124:  

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.