[vlc-commits] Fix brief white flash when switching into fullscreen

Cheng Sun git at videolan.org
Wed Dec 28 19:15:55 CET 2011


npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | Sat Dec 24 16:42:54 2011 +0000| [43eb1b94c55731f392b3be73ce46045296f9cc8b] | committer: Jean-Baptiste Kempf

Fix brief white flash when switching into fullscreen

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=43eb1b94c55731f392b3be73ce46045296f9cc8b
---

 npapi/vlcplugin_gtk.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/npapi/vlcplugin_gtk.cpp b/npapi/vlcplugin_gtk.cpp
index 78d0354..24c6045 100644
--- a/npapi/vlcplugin_gtk.cpp
+++ b/npapi/vlcplugin_gtk.cpp
@@ -330,7 +330,7 @@ bool VlcPluginGtk::create_windows()
 
     /* fullscreen top-level */
     fullscreen_win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
-    gtk_widget_modify_bg(video_container, GTK_STATE_NORMAL, &color_black);
+    gtk_widget_modify_bg(fullscreen_win, GTK_STATE_NORMAL, &color_black);
     gtk_window_set_decorated(GTK_WINDOW(fullscreen_win), false);
     g_signal_connect(G_OBJECT(fullscreen_win), "delete-event", G_CALLBACK(gtk_widget_hide_on_delete), this);
     g_signal_connect(G_OBJECT(fullscreen_win), "show", G_CALLBACK(fullscreen_win_visibility_handler), this);



More information about the vlc-commits mailing list