home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / ddx / ibm / common / ibmScreen.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-21  |  3.1 KB  |  122 lines

  1. /*
  2.  * $XConsortium: ibmScreen.c,v 1.3 91/09/09 13:23:20 rws Exp $
  3.  *
  4.  * Copyright IBM Corporation 1987,1988,1989,1990,1991
  5.  *
  6.  * All Rights Reserved
  7.  *
  8.  * License to use, copy, modify, and distribute this software and its
  9.  * documentation for any purpose and without fee is hereby granted,
  10.  * provided that the above copyright notice appear in all copies and that
  11.  * both that copyright notice and this permission notice appear in
  12.  * supporting documentation, and that the name of IBM not be
  13.  * used in advertising or publicity pertaining to distribution of the
  14.  * software without specific, written prior permission.
  15.  *
  16.  * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND 
  18.  * NONINFRINGEMENT OF THIRD PARTY RIGHTS, IN NO EVENT SHALL
  19.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23.  * SOFTWARE.
  24.  *
  25. */
  26.  
  27. #include "X.h"
  28. #include "misc.h"
  29. #include "miscstruct.h"
  30. #include "scrnintstr.h"
  31. #include "cursorstr.h"
  32.  
  33. #include "ibmScreen.h"
  34.  
  35. ibmPerScreenInfo *ibmScreens[MAXSCREENS];
  36. int              ibmNumScreens=         0;
  37. int              ibmXWrapScreen=        FALSE;
  38. int              ibmYWrapScreen=        FALSE;
  39. int              ibmCurrentScreen=      0;
  40. int              ibmUseHardware=        1;
  41.  
  42. #ifdef IBM_DEV
  43. extern ibmPerScreenInfo dev1ScreenInfoStruct ;
  44. extern ibmPerScreenInfo dev2ScreenInfoStruct ;
  45. extern ibmPerScreenInfo dev3ScreenInfoStruct ;
  46. #endif
  47. #ifdef IBM_GENERIC
  48. extern ibmPerScreenInfo genericScreenInfoStruct ;
  49. #endif
  50. #ifdef IBM_ADAM
  51. extern ibmPerScreenInfo adamScreenInfoStruct ;
  52. #endif
  53. #ifdef IBM_SKYWAY
  54. extern ibmPerScreenInfo skywayScreenInfoStruct ;
  55. #endif
  56. #ifdef IBM_SKYMONO
  57. extern ibmPerScreenInfo skyMonoScreenInfoStruct ;
  58. #endif
  59. #ifdef IBM_SABINE
  60. extern ibmPerScreenInfo sabineScreenInfoStruct ;
  61. #endif
  62. #ifdef IBM_GEMINI
  63. extern ibmPerScreenInfo geminiScreenInfoStruct ;
  64. #endif
  65. #ifdef IBM_PED
  66. extern ibmPerScreenInfo pedScreenInfoStruct ;
  67. #endif
  68. #ifdef IBM_VGA
  69. extern ibmPerScreenInfo vgaScreenInfoStruct ;
  70. #endif
  71. #ifdef IBM_8514
  72. extern ibmPerScreenInfo ibm8514ScreenInfoStruct ;
  73. #endif
  74. #ifdef IBM_CFBLANNO
  75. extern ibmPerScreenInfo cfblannoScreenInfoStruct ;
  76. #endif
  77. #ifdef IBM_MFBLANNO
  78. extern ibmPerScreenInfo mfblannoScreenInfoStruct ;
  79. #endif
  80.  
  81. ibmPerScreenInfo *ibmPossibleScreens[] = {
  82. #ifdef IBM_ADAM
  83.     &adamScreenInfoStruct,
  84. #endif
  85. #ifdef IBM_SKYWAY
  86.     &skywayScreenInfoStruct,
  87. #endif
  88. #ifdef IBM_SKYMONO
  89.     &skyMonoScreenInfoStruct,
  90. #endif
  91. #ifdef IBM_SABINE
  92.     &sabineScreenInfoStruct,
  93. #endif
  94. #ifdef IBM_GEMINI
  95.     &geminiScreenInfoStruct,
  96. #endif
  97. #ifdef IBM_GENERIC
  98.     &genericScreenInfoStruct,
  99. #endif
  100. #ifdef IBM_PED
  101.     &pedScreenInfoStruct,
  102. #endif
  103. #ifdef IBM_VGA
  104.     &vgaScreenInfoStruct,
  105. #endif
  106. #ifdef IBM_8514
  107.     &ibm8514ScreenInfoStruct,
  108. #endif
  109. #ifdef IBM_CFBLANNO
  110.     &cfblannoScreenInfoStruct,
  111. #endif
  112. #ifdef IBM_MFBLANNO
  113.     &mfblannoScreenInfoStruct,
  114. #endif
  115. #ifdef IBM_DEV
  116.     &dev1ScreenInfoStruct,
  117.     &dev2ScreenInfoStruct,
  118.     &dev3ScreenInfoStruct,
  119. #endif
  120.     0
  121. } ;
  122.