summaryrefslogtreecommitdiffstats
path: root/libvo/vo_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r--libvo/vo_x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index bd3e0c8ff3..6f21f547eb 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -166,8 +166,10 @@ printf( "w: %d h: %d\n\n",vo_dwidth,vo_dheight );
if ( depth != 15 && depth != 16 && depth != 24 && depth != 32 ) depth=24;
XMatchVisualInfo( mDisplay,mScreen,depth,TrueColor,&vinfo );
+#ifdef HAVE_NEW_GUI
if ( vo_window != None ) { mywindow=vo_window; mygc=vo_gc; }
else
+#endif
{
if ( X_already_started ) return -1;
if( !vo_init() ) return 0; // Can't open X11