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
8776e1c0
Commit
8776e1c0
authored
Nov 24, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Detect broken NVIDIA RandR setups.
parent
86779241
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
xrandr.c
dlls/winex11.drv/xrandr.c
+16
-0
No files found.
dlls/winex11.drv/xrandr.c
View file @
8776e1c0
...
...
@@ -24,6 +24,7 @@
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
xrandr
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
#ifdef SONAME_LIBXRANDR
...
...
@@ -419,6 +420,21 @@ static int xrandr12_init_modes(void)
goto
done
;
}
/* Recent (304.64, possibly earlier) versions of the nvidia driver only
* report a DFP's native mode through RandR 1.2 / 1.3. Standard DMT modes
* are only listed through RandR 1.0 / 1.1. This is completely useless,
* but NVIDIA considers this a feature, so it's unlikely to change. The
* best we can do is to fall back to RandR 1.0 and encourage users to
* consider more cooperative driver vendors when we detect such a
* configuration. */
if
(
output_info
->
nmode
==
1
&&
XQueryExtension
(
gdi_display
,
"NV-CONTROL"
,
&
i
,
&
j
,
&
ret
))
{
ERR_
(
winediag
)(
"Broken NVIDIA RandR detected, falling back to RandR 1.0. "
"Please consider using the Nouveau driver instead.
\n
"
);
ret
=
-
1
;
goto
done
;
}
if
(
!
(
xrandr12_modes
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
xrandr12_modes
)
*
output_info
->
nmode
)))
{
ERR
(
"Failed to allocate xrandr mode info array.
\n
"
);
...
...
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