Commit eb311d3b 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>
(cherry picked from commit e5aca82f048485c32fe552cda9895ecabfc23074)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent bd8458d5
......@@ -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 );
}
......
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