summaryrefslogblamecommitdiff
path: root/games/jetpack/files/patch-ad
blob: 308b486b33f050283395d3658e1275ed74f6f125 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                                
               
              






                                                                               







                                                                     






                                                                                       











                                                                     
*** initx.c.orig	Mon Apr  6 12:59:29 1992
--- initx.c	Mon Jan  2 12:14:16 1995
***************
*** 44,57 ****
  	resulting fontname right into the code.
  */
  
! static char	*fontname = "-*-fixed-medium-r-normal--*-70-*-*-c-*-*-*";
  static char	*bigfontname = "-*-courier-bold-r-normal--*-180-*-*-m-150-*-*";
  
  /*	init_X opens the display and sets up all the color stuff
  */
  init_X()
  {
!     display = XOpenDisplay(NULL);
      if (display == NULL) {
         fprintf(stderr, "Jetpack : Cannot connect to X Server %s\n",
                 XDisplayName(NULL));
--- 44,62 ----
  	resulting fontname right into the code.
  */
  
! static char	*fontname = "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-*-*-*";
  static char	*bigfontname = "-*-courier-bold-r-normal--*-180-*-*-m-150-*-*";
  
  /*	init_X opens the display and sets up all the color stuff
  */
  init_X()
  {
!     int saved_euid;
! 
!     saved_euid = geteuid();
!     seteuid(getuid());
!     display = XOpenDisplay("");
!     seteuid(saved_euid);
      if (display == NULL) {
         fprintf(stderr, "Jetpack : Cannot connect to X Server %s\n",
                 XDisplayName(NULL));