comparison libvo/vo_x11.c @ 6180:11e216bee07b

Destroy the old win when config is called multiple times
author albeu
date Fri, 24 May 2002 21:58:05 +0000
parents 891cff8aba60
children ad521fb49a5e
comparison
equal deleted inserted replaced
6179:c9ae6db39df0 6180:11e216bee07b
286 #ifdef HAVE_NEW_GUI 286 #ifdef HAVE_NEW_GUI
287 if(use_gui) guiGetEvent( guiSetShVideo,0 ); // the GUI will set up / resize the window 287 if(use_gui) guiGetEvent( guiSetShVideo,0 ); // the GUI will set up / resize the window
288 else 288 else
289 #endif 289 #endif
290 { 290 {
291 291 if(vo_window != None) {
292 freeMyXImage();
293 XUnmapWindow( mDisplay,vo_window );
294 XDestroyWindow(mDisplay, vo_window);
295 }
296
292 #ifdef HAVE_XF86VM 297 #ifdef HAVE_XF86VM
293 if ( vm ) 298 if ( vm )
294 { 299 {
295 if ((d_width==0) && (d_height==0)) 300 if ((d_width==0) && (d_height==0))
296 { vm_width=image_width; vm_height=image_height; } 301 { vm_width=image_width; vm_height=image_height; }