Mercurial > mplayer.hg
changeset 1924:6185fef2703a
XDestroyWindow fix baze.
author | pontscho |
---|---|
date | Thu, 20 Sep 2001 10:26:22 +0000 |
parents | 40084ad62591 |
children | 633a7f0d72a4 |
files | libvo/vo_x11.c libvo/vo_xmga.c libvo/vo_xv.c |
diffstat | 3 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_x11.c Thu Sep 20 09:12:29 2001 +0000 +++ b/libvo/vo_x11.c Thu Sep 20 10:26:22 2001 +0000 @@ -554,7 +554,10 @@ #ifdef HAVE_NEW_GUI if ( vo_window == None ) #endif - saver_on(mDisplay); // screen saver back on + { + saver_on(mDisplay); // screen saver back on + XDestroyWindow( mDisplay,mywindow ); + } #ifdef HAVE_XF86VM #ifdef HAVE_NEW_GUI if ((vidmodes!=NULL)&&( vo_window == None ) ) @@ -568,7 +571,6 @@ free(vidmodes); } #endif - XDestroyWindow( mDisplay,mywindow ); printf("vo: uninit!\n"); }
--- a/libvo/vo_xmga.c Thu Sep 20 09:12:29 2001 +0000 +++ b/libvo/vo_xmga.c Thu Sep 20 10:26:22 2001 +0000 @@ -346,8 +346,10 @@ #ifdef HAVE_NEW_GUI if ( vo_window == None ) #endif + { saver_on(mDisplay); + XDestroyWindow( mDisplay,mWindow ); + } mga_uninit(); - XDestroyWindow( mDisplay,mWindow ); printf("vo: uninit!\n"); }
--- a/libvo/vo_xv.c Thu Sep 20 09:12:29 2001 +0000 +++ b/libvo/vo_xv.c Thu Sep 20 10:26:22 2001 +0000 @@ -486,9 +486,11 @@ #ifdef HAVE_NEW_GUI if ( vo_window == None ) #endif + { saver_on(mDisplay); // screen saver back on + XDestroyWindow( mDisplay,mywindow ); + } for( i=0;i<num_buffers;i++ ) deallocate_xvimage( i ); - XDestroyWindow( mDisplay,mywindow ); }