Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
10b2a996
Commit
10b2a996
authored
Sep 25, 2019
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Sep 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Trace display device counts.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
20336127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
display.c
dlls/winex11.drv/display.c
+4
-0
No files found.
dlls/winex11.drv/display.c
View file @
10b2a996
...
...
@@ -472,6 +472,7 @@ void X11DRV_DisplayDevices_Init(BOOL force)
/* Initialize GPUs */
if
(
!
handler
.
pGetGpus
(
&
gpus
,
&
gpu_count
))
goto
done
;
TRACE
(
"GPU count: %d
\n
"
,
gpu_count
);
for
(
gpu
=
0
;
gpu
<
gpu_count
;
gpu
++
)
{
...
...
@@ -481,11 +482,13 @@ void X11DRV_DisplayDevices_Init(BOOL force)
/* Initialize adapters */
if
(
!
handler
.
pGetAdapters
(
gpus
[
gpu
].
id
,
&
adapters
,
&
adapter_count
))
goto
done
;
TRACE
(
"GPU: %#lx %s, adapter count: %d
\n
"
,
gpus
[
gpu
].
id
,
wine_dbgstr_w
(
gpus
[
gpu
].
name
),
adapter_count
);
for
(
adapter
=
0
;
adapter
<
adapter_count
;
adapter
++
)
{
if
(
!
handler
.
pGetMonitors
(
adapters
[
adapter
].
id
,
&
monitors
,
&
monitor_count
))
goto
done
;
TRACE
(
"adapter: %#lx, monitor count: %d
\n
"
,
adapters
[
adapter
].
id
,
monitor_count
);
if
(
!
X11DRV_InitAdapter
(
video_hkey
,
video_index
,
gpu
,
adapter
,
monitor_count
,
&
gpus
[
gpu
],
guidW
,
driverW
,
&
adapters
[
adapter
]))
...
...
@@ -494,6 +497,7 @@ void X11DRV_DisplayDevices_Init(BOOL force)
/* Initialize monitors */
for
(
monitor
=
0
;
monitor
<
monitor_count
;
monitor
++
)
{
TRACE
(
"monitor: %#x %s
\n
"
,
monitor
,
wine_dbgstr_w
(
monitors
[
monitor
].
name
));
if
(
!
X11DRV_InitMonitor
(
monitor_devinfo
,
&
monitors
[
monitor
],
monitor
,
video_index
))
goto
done
;
}
...
...
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