From 29e4c7d44f634ab89c03d64df2c048a8e9d83e35 Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Sat, 16 Apr 2005 00:01:38 +0000 Subject: [PATCH] * modules/gui/wxwindows/video.cpp: fixes. --- modules/gui/wxwindows/video.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/modules/gui/wxwindows/video.cpp b/modules/gui/wxwindows/video.cpp index 8e964bd311..45d47e3ad6 100644 --- a/modules/gui/wxwindows/video.cpp +++ b/modules/gui/wxwindows/video.cpp @@ -147,6 +147,12 @@ VideoWindow::VideoWindow( intf_thread_t *_p_intf, wxWindow *_p_parent ): p_child_window = new wxWindow( this, -1, wxDefaultPosition, child_size ); + if( !b_auto_size ) + { + SetBackgroundColour( *wxBLACK ); + p_child_window->SetBackgroundColour( *wxBLACK ); + } + p_child_window->Show(); Show(); b_shown = VLC_TRUE; @@ -239,10 +245,6 @@ void *VideoWindow::GetWindow( vout_thread_t *_p_vout, AddPendingEvent( event ); vlc_mutex_unlock( &lock ); - p_child_window->SetBackgroundColour( *wxBLACK ); - SetBackgroundColour( *wxBLACK ); - Refresh(); - #ifdef __WXGTK__ GtkWidget *p_widget = p_child_window->GetHandle(); @@ -314,7 +316,7 @@ void VideoWindow::OnHideTimer( wxTimerEvent& WXUNUSED(event)) if( b_shown ) { p_intf->p_sys->p_video_sizer->Show( this, FALSE ); - Hide(); + SetSize( 0, 0 ); p_intf->p_sys->p_video_sizer->Layout(); b_shown = VLC_FALSE; } @@ -322,10 +324,6 @@ void VideoWindow::OnHideTimer( wxTimerEvent& WXUNUSED(event)) wxCommandEvent intf_event( wxEVT_INTF, 0 ); p_parent->AddPendingEvent( intf_event ); - - p_child_window->SetBackgroundColour( wxNullColour ); - SetBackgroundColour( wxNullColour ); - Refresh(); } void VideoWindow::OnControlEvent( wxCommandEvent &event ) -- 2.39.2