[vlc-devel] commit: [Qt] use screenGeometry instead of screen. (Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Oct 15 17:43:48 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Oct 15 17:41:41 2008 +0200| [1d0cbdf2de75be13fdf06bff890b3c2fffe5e9d5] | committer: Jean-Baptiste Kempf 

[Qt] use screenGeometry instead of screen.

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

 modules/gui/qt4/components/controller.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index c3bad62..e6d8f9a 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -819,11 +819,11 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i )
     adjustSize ();  /* need to get real width and height for moving */
 
     /* center down */
-    QWidget * p_desktop = QApplication::desktop()->screen(
-                QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi ) );
+    QRect desktopRect = QApplication::desktop()->
+        screenGeometry( p_intf->p_sys->p_mi );
 
-    QPoint pos = QPoint( p_desktop->width() / 2 - width() / 2,
-          p_desktop->height() - height() );
+    QPoint pos = QPoint( desktopRect.width() / 2 - width() / 2,
+          desktopRect.height() - height() );
 
     getSettings()->beginGroup( "FullScreen" );
     move( getSettings()->value( "pos", pos ).toPoint() );




More information about the vlc-devel mailing list