[vlc-devel] commit: qt4(Win32): fix fullscreen issue on Windows (Erwan Tulou )

git version control git at videolan.org
Tue Jan 19 21:21:00 CET 2010


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue Jan 19 20:46:42 2010 +0100| [9aac6ab45c378631f131791cead186db32b1db51] | committer: Erwan Tulou 

qt4(Win32): fix fullscreen issue on Windows

On Windows, fullscreen was displayed with a frame and title.
Passing the newflags when reparenting works out the problem.
patch tested successfully on Linux and WinXP. other Win flavors to be tested

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9aac6ab45c378631f131791cead186db32b1db51
---

 modules/gui/qt4/components/interface_widgets.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index e540836..d4d33f4 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -212,9 +212,8 @@ void VideoWidget::SetFullScreen( bool b_fs )
 
         QRect screenres = QApplication::desktop()->screenGeometry( numscreen );
 
-        reparentable->setParent( NULL );
+        reparentable->setParent( NULL, newflags );
         reparentable->setWindowState( newstate );
-        reparentable->setWindowFlags( newflags );
         /* To be sure window is on proper-screen in xinerama */
         if( !screenres.contains( reparentable->pos() ) )
         {




More information about the vlc-devel mailing list