# HG changeset patch # User ib # Date 1307111216 0 # Node ID 09b7b05fadfa7b1bbf33174c40cfcdfc07b1644c # Parent 175e9084ee629c01461b6765a6cbba097ffb44ae Remove commented and disabled code. XDisplayName() does look in the environment for DISPLAY, if mDisplayName isn't given. diff -r 175e9084ee62 -r 09b7b05fadfa libvo/x11_common.c --- a/libvo/x11_common.c Fri Jun 03 14:25:43 2011 +0000 +++ b/libvo/x11_common.c Fri Jun 03 14:26:56 2011 +0000 @@ -408,8 +408,6 @@ int depth, bpp; unsigned int mask; -// char * DisplayName = ":0.0"; -// Display * mDisplay; XImage *mXImage = NULL; // Window mRootWin; @@ -427,13 +425,7 @@ XSetErrorHandler(x11_errorhandler); -#if 0 - if (!mDisplayName) - if (!(mDisplayName = getenv("DISPLAY"))) - mDisplayName = strdup(":0.0"); -#else dispName = XDisplayName(mDisplayName); -#endif mp_msg(MSGT_VO, MSGL_V, "X11 opening display: %s\n", dispName);