Commit f66c92bf authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/video.cpp: only set background color when necessary.

parent a791789c
...@@ -139,9 +139,6 @@ VideoWindow::VideoWindow( intf_thread_t *_p_intf, wxWindow *_p_parent ): ...@@ -139,9 +139,6 @@ VideoWindow::VideoWindow( intf_thread_t *_p_intf, wxWindow *_p_parent ):
Show(); Show();
b_shown = VLC_TRUE; b_shown = VLC_TRUE;
p_child_window->SetBackgroundColour( *wxBLACK );
SetBackgroundColour( *wxBLACK );
p_intf->p_sys->p_video_sizer = new wxBoxSizer( wxHORIZONTAL ); p_intf->p_sys->p_video_sizer = new wxBoxSizer( wxHORIZONTAL );
p_intf->p_sys->p_video_sizer->Add( this, 1, wxEXPAND ); p_intf->p_sys->p_video_sizer->Add( this, 1, wxEXPAND );
...@@ -219,6 +216,10 @@ void *VideoWindow::GetWindow( vout_thread_t *_p_vout, ...@@ -219,6 +216,10 @@ void *VideoWindow::GetWindow( vout_thread_t *_p_vout,
AddPendingEvent( event ); AddPendingEvent( event );
vlc_mutex_unlock( &lock ); vlc_mutex_unlock( &lock );
p_child_window->SetBackgroundColour( *wxBLACK );
SetBackgroundColour( *wxBLACK );
Refresh();
#ifdef __WXGTK__ #ifdef __WXGTK__
GtkWidget *p_widget = p_child_window->GetHandle(); GtkWidget *p_widget = p_child_window->GetHandle();
...@@ -302,6 +303,10 @@ void VideoWindow::OnHideTimer( wxTimerEvent& WXUNUSED(event)) ...@@ -302,6 +303,10 @@ void VideoWindow::OnHideTimer( wxTimerEvent& WXUNUSED(event))
wxCommandEvent intf_event( wxEVT_INTF, 0 ); wxCommandEvent intf_event( wxEVT_INTF, 0 );
p_parent->AddPendingEvent( intf_event ); p_parent->AddPendingEvent( intf_event );
p_child_window->SetBackgroundColour( wxNullColour );
SetBackgroundColour( wxNullColour );
Refresh();
} }
void VideoWindow::OnControlEvent( wxCommandEvent &event ) void VideoWindow::OnControlEvent( wxCommandEvent &event )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment