mirror of
https://github.com/mpv-player/mpv
synced 2025-02-14 19:07:14 +00:00
vo_window bug fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1753 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
701978744f
commit
9e5096e8fb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user