1995-01-02 20:42:17 +00:00
|
|
|
*** initx.c.orig Mon Apr 6 12:59:29 1992
|
|
|
|
--- initx.c Mon Jan 2 12:14:16 1995
|
1994-09-21 12:22:34 +00:00
|
|
|
***************
|
1995-01-02 20:42:17 +00:00
|
|
|
*** 44,57 ****
|
1994-09-21 12:22:34 +00:00
|
|
|
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
|
1995-01-02 20:42:17 +00:00
|
|
|
*/
|
|
|
|
init_X()
|
|
|
|
{
|
|
|
|
! display = XOpenDisplay(NULL);
|
|
|
|
if (display == NULL) {
|
|
|
|
fprintf(stderr, "Jetpack : Cannot connect to X Server %s\n",
|
|
|
|
XDisplayName(NULL));
|
|
|
|
--- 44,62 ----
|
1994-09-21 12:22:34 +00:00
|
|
|
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
|
1995-01-02 20:42:17 +00:00
|
|
|
*/
|
|
|
|
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));
|