Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
1d0cbdf2
Commit
1d0cbdf2
authored
Oct 15, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Qt] use screenGeometry instead of screen.
parent
7089382f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+4
-4
No files found.
modules/gui/qt4/components/controller.cpp
View file @
1d0cbdf2
...
...
@@ -819,11 +819,11 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i )
adjustSize
();
/* need to get real width and height for moving */
/* center down */
Q
Widget
*
p_desktop
=
QApplication
::
desktop
()
->
screen
(
QApplication
::
desktop
()
->
screenNumber
(
p_intf
->
p_sys
->
p_mi
)
);
Q
Rect
desktopRect
=
QApplication
::
desktop
()
->
screenGeometry
(
p_intf
->
p_sys
->
p_mi
);
QPoint
pos
=
QPoint
(
p_desktop
->
width
()
/
2
-
width
()
/
2
,
p_desktop
->
height
()
-
height
()
);
QPoint
pos
=
QPoint
(
desktopRect
.
width
()
/
2
-
width
()
/
2
,
desktopRect
.
height
()
-
height
()
);
getSettings
()
->
beginGroup
(
"FullScreen"
);
move
(
getSettings
()
->
value
(
"pos"
,
pos
).
toPoint
()
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment