comparison src/video/x11/SDL_x11video.c @ 1299:2bf9dda618e5

Corrects dynamic X11 code on Tru64 systems. Fixes Bugzilla #87.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 30 Jan 2006 18:21:44 +0000
parents d2c6881935be
children c9b51268668f
comparison
equal deleted inserted replaced
1298:e1b8e1b97b67 1299:2bf9dda618e5
434 local_X11 = 1; 434 local_X11 = 1;
435 } else { 435 } else {
436 local_X11 = 0; 436 local_X11 = 0;
437 } 437 }
438 SDL_Display = pXOpenDisplay(display); 438 SDL_Display = pXOpenDisplay(display);
439 #if defined(__osf__) && defined(X11_DYNAMIC)
440 /* On Tru64 if linking without -lX11, it fails and you get following message.
441 * Xlib: connection to ":0.0" refused by server
442 * Xlib: XDM authorization key matches an existing client!
443 *
444 * It succeeds if retrying 1 second later
445 * or if running xhost +localhost on shell.
446 *
447 */
448 if ( SDL_Display == NULL ) {
449 SDL_Delay(1000);
450 SDL_Display = pXOpenDisplay(display);
451 }
452 #endif
439 if ( SDL_Display == NULL ) { 453 if ( SDL_Display == NULL ) {
440 SDL_SetError("Couldn't open X11 display"); 454 SDL_SetError("Couldn't open X11 display");
441 return(-1); 455 return(-1);
442 } 456 }
443 #ifdef X11_DEBUG 457 #ifdef X11_DEBUG