[vlc-commits] Qt: use the effective size of the widget to center the FSC

Ludovic Fauvet git at videolan.org
Wed Dec 21 21:36:28 CET 2011


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Wed Dec 21 14:58:36 2011 +0100| [e5aca82f048485c32fe552cda9895ecabfc23074] | committer: Jean-Baptiste Kempf

Qt: use the effective size of the widget to center the FSC

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

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

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

diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index 918615b..9ea1f23 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -795,8 +795,8 @@ void FullscreenControllerWidget::centerFSC( int number )
     screenRes = QApplication::desktop()->screenGeometry(number);
 
     /* screen has changed, calculate new position */
-    QPoint pos = QPoint( screenRes.x() + (screenRes.width() / 2) - (sizeHint().width() / 2),
-            screenRes.y() + screenRes.height() - sizeHint().height());
+    QPoint pos = QPoint( screenRes.x() + (screenRes.width() / 2) - (width() / 2),
+            screenRes.y() + screenRes.height() - height());
     move( pos );
 }
 



More information about the vlc-commits mailing list