[vlc-devel] [PATCH 1/3] Qt: use the effective size of the widget to center the FSC
Ludovic Fauvet
etix at videolan.org
Wed Dec 21 14:58:36 CET 2011
---
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 );
}
--
1.7.8
More information about the vlc-devel
mailing list