Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6da1479b
Commit
6da1479b
authored
Jun 25, 2012
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2(Linux): display list of monitors and caracteristics for debug
parent
1e3f0b45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
modules/gui/skins2/x11/x11_factory.cpp
modules/gui/skins2/x11/x11_factory.cpp
+13
-0
No files found.
modules/gui/skins2/x11/x11_factory.cpp
View file @
6da1479b
...
...
@@ -94,6 +94,19 @@ bool X11Factory::init()
// Determine the monitor geometry
getDefaultGeometry
(
&
m_screenWidth
,
&
m_screenHeight
);
// list all available monitors
int
num_screen
;
XineramaScreenInfo
*
info
=
XineramaQueryScreens
(
pDisplay
,
&
num_screen
);
if
(
info
)
{
msg_Dbg
(
getIntf
(),
"number of monitors detected : %i"
,
num_screen
);
for
(
int
i
=
0
;
i
<
num_screen
;
i
++
)
msg_Dbg
(
getIntf
(),
" monitor #%i : %ix%i at +%i+%i"
,
i
,
info
[
i
].
width
,
info
[
i
].
height
,
info
[
i
].
x_org
,
info
[
i
].
y_org
);
XFree
(
info
);
}
return
true
;
}
...
...
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