*** main.c.orig Mon Oct 19 11:29:04 1992 --- main.c Mon Jan 2 15:33:39 1995 *************** *** 121,126 **** --- 121,132 ---- display = XtOpenDisplay( context, NULL, NULL, "Xtetris", Options, XtNumber(Options), &argc, argv ); + if (display == NULL) { + fprintf(stderr, "%s : Cannot connect to X Server %s\n", argv[0], + XDisplayName(NULL)); + exit(1); + } + /* Get a default customization. */ screenno = DefaultScreen(display);