comparison libvo/x11_common.c @ 1447:e82fbd67ae60

better local display connection patch by Adam Tla/lka atlka@pg.gda.pl
author arpi
date Mon, 06 Aug 2001 00:22:44 +0000
parents 4d77492e5d67
children 8c57a5a3c645
comparison
equal deleted inserted replaced
1446:a49fd85fc431 1447:e82fbd67ae60
89 if(mask==0x7FFF) vo_depthonscreen=15; else 89 if(mask==0x7FFF) vo_depthonscreen=15; else
90 if(mask==0xFFFF) vo_depthonscreen=16; 90 if(mask==0xFFFF) vo_depthonscreen=16;
91 } 91 }
92 XDestroyImage( mXImage ); 92 XDestroyImage( mXImage );
93 // XCloseDisplay( mDisplay ); 93 // XCloseDisplay( mDisplay );
94 #warning Better local display detection method is needed. 94 /* slightly improved local display detection AST */
95 if ( strncmp(mDisplayName, "unix:", 5) == 0)
96 mDisplayName += 4;
97 else if ( strncmp(mDisplayName, "localhost:", 10) == 0)
98 mDisplayName += 9;
95 if (*mDisplayName==':') mLocalDisplay=1; else mLocalDisplay=0; 99 if (*mDisplayName==':') mLocalDisplay=1; else mLocalDisplay=0;
96 printf("vo: X11 running at %dx%d depth: %d (\"%s\" => %s display)\n",vo_screenwidth,vo_screenheight,vo_depthonscreen,mDisplayName,mLocalDisplay?"local":"remote"); 100 printf("vo: X11 running at %dx%d depth: %d (\"%s\" => %s display)\n",vo_screenwidth,vo_screenheight,vo_depthonscreen,mDisplayName,mLocalDisplay?"local":"remote");
97 return 1; 101 return 1;
98 } 102 }
99 103