Commit e5aca82f authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Jean-Baptiste Kempf

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

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ee658c7c
...@@ -795,8 +795,8 @@ void FullscreenControllerWidget::centerFSC( int number ) ...@@ -795,8 +795,8 @@ void FullscreenControllerWidget::centerFSC( int number )
screenRes = QApplication::desktop()->screenGeometry(number); screenRes = QApplication::desktop()->screenGeometry(number);
/* screen has changed, calculate new position */ /* screen has changed, calculate new position */
QPoint pos = QPoint( screenRes.x() + (screenRes.width() / 2) - (sizeHint().width() / 2), QPoint pos = QPoint( screenRes.x() + (screenRes.width() / 2) - (width() / 2),
screenRes.y() + screenRes.height() - sizeHint().height()); screenRes.y() + screenRes.height() - height());
move( pos ); move( pos );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment