]> git.sesse.net Git - vlc/commitdiff
Qt: use the effective size of the widget to center the FSC
authorLudovic Fauvet <etix@videolan.org>
Wed, 21 Dec 2011 13:58:36 +0000 (14:58 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 Dec 2011 20:33:29 +0000 (21:33 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/components/controller.cpp

index 918615b00ccd7e44b280a60b04c84e5d5b622346..9ea1f237387bb31b33c31720af46cb5c6a40ff12 100644 (file)
@@ -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 );
 }