|
|
1.1 ! root 1: #ifndef lint ! 2: static char *rcsid_aed_c = "$Header: aed.c,v 10.1 86/11/19 10:38:53 jg Exp $"; ! 3: #endif lint ! 4: /* aed.c - AED display initialization routine ! 5: * ! 6: * aed_init Display initialization routine ! 7: * ! 8: * Author: ! 9: * Scott Bates ! 10: * Brown University ! 11: * IRIS, Box 1946 ! 12: * Providence, RI 02912 ! 13: * ! 14: * ! 15: * Copyright (c) 1986 Brown University ! 16: * ! 17: * Permission to use, copy, modify and distribute this software and its ! 18: * documentation for any purpose and without fee is hereby granted, provided ! 19: * that the above copyright notice appear in all copies, and that both ! 20: * that copyright notice and this permission notice appear in supporting ! 21: * documentation, and that the name of Brown University not be used in ! 22: * advertising or publicity pertaining to distribution of the software ! 23: * without specific, written prior permission. Brown University makes no ! 24: * representations about the suitability of this software for any purpose. ! 25: * It is provided "as-is" without express or implied warranty. ! 26: */ ! 27: ! 28: #include "private.h" ! 29: #include "aed.h" ! 30: ! 31: /* ! 32: * Initialize AED ! 33: */ ! 34: ! 35: aed_init() ! 36: { ! 37: int *color = (int *)AED_COLOR; ! 38: ! 39: #ifdef TRACE_X ! 40: fprintf (stderr, "In aed_init\n"); ! 41: fflush (stderr); ! 42: #endif TRACE_X ! 43: ! 44: /* ! 45: * Set forground/background colors to match X ! 46: */ ! 47: ! 48: *color = WHITE_ON_BLACK; ! 49: ! 50: /* ! 51: * Clear off-screen bitmap ! 52: */ ! 53: ! 54: bzero((caddr_t)SCREEN_BASE, SCREEN_BM_SIZE); ! 55: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.