home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / common / ibmScreen.c < prev    next >
C/C++ Source or Header  |  1991-09-20  |  3KB  |  95 lines

  1. /*
  2.  * $Id: ibmScreen.c,v 1.1 1991/09/20 18:24:03 mtranle Exp $
  3.  *
  4.  * Copyright IBM Corporation 1987,1988,1989
  5.  *
  6.  * All Rights Reserved
  7.  *
  8.  * Permission 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 AND FITNESS, IN NO EVENT SHALL
  18.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  19.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  21.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  22.  * SOFTWARE.
  23.  *
  24. */
  25.  
  26. #include "X.h"
  27. #include "misc.h"
  28. #include "miscstruct.h"
  29. #include "scrnintstr.h"
  30. #include "cursorstr.h"
  31.  
  32. #include "ibmScreen.h"
  33.  
  34. /* SERVER GLOBALS */
  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. int         ibmAllowBackingStore=    1;
  42.  
  43. #ifdef IBM_VGA
  44. extern ibmPerScreenInfo vgaScreenInfoStruct ;
  45. #endif /* IBM_VGA */
  46. #ifdef IBM_8514
  47. extern ibmPerScreenInfo ibm8514ScreenInfoStruct ;
  48. #endif /* IBM_8514 */
  49. #ifdef IBM_MPEL
  50. extern ibmPerScreenInfo mpelScreenInfoStruct ;
  51. #endif /* IBM_MPEL */
  52. #ifdef IBM_EGA
  53. extern ibmPerScreenInfo egaScreenInfoStruct ;
  54. #endif /* IBM_EGA */
  55. #ifdef IBM_APA8c
  56. extern ibmPerScreenInfo apa8cScreenInfoStruct ;
  57. #endif /* IBM_APA8c */
  58. #ifdef IBM_APA16
  59. extern ibmPerScreenInfo apa16ScreenInfoStruct ;
  60. #endif /* IBM_APA16 */
  61. #ifdef IBM_AED
  62. extern ibmPerScreenInfo aedScreenInfoStruct ;
  63. #endif /* IBM_AED */
  64. #ifdef IBM_PLX
  65. extern ibmPerScreenInfo plxScreenInfoStruct ;
  66. #endif /* IBM_PLX */
  67.  
  68. ibmPerScreenInfo *ibmPossibleScreens[] = {
  69. #ifdef IBM_8514
  70.     &ibm8514ScreenInfoStruct,
  71. #endif /* IBM_8514 */
  72. #ifdef IBM_VGA
  73.     &vgaScreenInfoStruct,
  74. #endif /* IBM_VGA */
  75. #ifdef IBM_MPEL
  76.     &mpelScreenInfoStruct,
  77. #endif /* IBM_MPEL */
  78. #ifdef IBM_EGA
  79.     &egaScreenInfoStruct,
  80. #endif /* IBM_EGA */
  81. #ifdef IBM_APA8c
  82.     &apa8cScreenInfoStruct,
  83. #endif /* IBM_APA8c */
  84. #ifdef IBM_APA16
  85.     &apa16ScreenInfoStruct,
  86. #endif /* IBM_APA16 */
  87. #ifdef IBM_AED
  88.     &aedScreenInfoStruct,
  89. #endif /* IBM_AED */
  90. #ifdef IBM_PLX
  91.     &plxScreenInfoStruct,
  92. #endif /* IBM_PLX */
  93.     0
  94. } ;
  95.