Annotation of researchv9/X11/src/X.V11R1/server/ddx/apollo/init.c, revision 1.1.1.1

1.1       root        1: /******************************************************************
                      2: Copyright 1987 by Apollo Computer Inc., Chelmsford, Massachusetts.
                      3: 
                      4:                         All Rights Reserved
                      5: 
                      6: Permission to use, duplicate, change, and distribute this software and
                      7: its documentation for any purpose and without fee is granted, provided
                      8: that the above copyright notice appear in such copy and that this
                      9: copyright notice appear in all supporting documentation, and that the
                     10: names of Apollo Computer Inc. or MIT not be used in advertising or publicity
                     11: pertaining to distribution of the software without written prior permission.
                     12: ******************************************************************/
                     13: 
                     14: #include "apollo.h"
                     15: 
                     16: #define MOTION_BUFFER_SIZE 0
                     17: #define NUMSCREENS 1
                     18: #define NUMFORMATS 0
                     19: 
                     20: PixmapFormatRec *formats;
                     21: 
                     22: InitOutput(screenInfo, argc, argv)
                     23:     ScreenInfo *screenInfo;
                     24:     int argc;
                     25:     char **argv;
                     26: {
                     27:     int i;
                     28: 
                     29:     screenInfo->imageByteOrder = IMAGE_BYTE_ORDER;
                     30:     screenInfo->bitmapScanlineUnit = BITMAP_SCANLINE_UNIT;
                     31:     screenInfo->bitmapScanlinePad = BITMAP_SCANLINE_PAD;
                     32:     screenInfo->bitmapBitOrder = BITMAP_BIT_ORDER;
                     33: 
                     34:     screenInfo->numPixmapFormats = NUMFORMATS;
                     35:     for (i=0; i< NUMFORMATS; i++)
                     36:     {
                     37:        screenInfo->formats[i].depth = formats[i].depth;
                     38:        screenInfo->formats[i].bitsPerPixel = formats[i].bitsPerPixel;
                     39:        screenInfo->formats[i].scanlinePad = formats[i].scanlinePad;
                     40:     }
                     41: 
                     42:     AddScreen(apScreenInit, argc, argv);
                     43: }
                     44: 
                     45: void
                     46: InitInput(argc, argv)
                     47:     int argc;
                     48:     char *argv[];
                     49: {
                     50:     DevicePtr ptr_dev, kbd_dev;
                     51:     
                     52:     ptr_dev = AddInputDevice(apMouseProc, TRUE);
                     53: 
                     54:     kbd_dev = AddInputDevice(apKeybdProc, TRUE);
                     55: 
                     56:     RegisterPointerDevice(ptr_dev, MOTION_BUFFER_SIZE);
                     57:     RegisterKeyboardDevice(kbd_dev);
                     58: }

unix.superglobalmegacorp.com

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