Commit 1d0cbdf2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

[Qt] use screenGeometry instead of screen.

parent 7089382f
...@@ -819,11 +819,11 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i ) ...@@ -819,11 +819,11 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i )
adjustSize (); /* need to get real width and height for moving */ adjustSize (); /* need to get real width and height for moving */
/* center down */ /* center down */
QWidget * p_desktop = QApplication::desktop()->screen( QRect desktopRect = QApplication::desktop()->
QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi ) ); screenGeometry( p_intf->p_sys->p_mi );
QPoint pos = QPoint( p_desktop->width() / 2 - width() / 2, QPoint pos = QPoint( desktopRect.width() / 2 - width() / 2,
p_desktop->height() - height() ); desktopRect.height() - height() );
getSettings()->beginGroup( "FullScreen" ); getSettings()->beginGroup( "FullScreen" );
move( getSettings()->value( "pos", pos ).toPoint() ); move( getSettings()->value( "pos", pos ).toPoint() );
......
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