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
81f8b6e8
Commit
81f8b6e8
authored
Oct 29, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Also catch X errors from XF86VidModeSetGammaRamp().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5b62f89b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
xvidmode.c
dlls/winex11.drv/xvidmode.c
+4
-0
No files found.
dlls/winex11.drv/xvidmode.c
View file @
81f8b6e8
...
...
@@ -416,8 +416,12 @@ static BOOL xf86vm_set_gamma_ramp(struct x11drv_gamma_ramp *ramp)
ramp
->
red
,
ramp
->
green
,
ramp
->
blue
,
GAMMA_RAMP_SIZE
);
}
X11DRV_expect_error
(
gdi_display
,
XVidModeErrorHandler
,
NULL
);
ret
=
pXF86VidModeSetGammaRamp
(
gdi_display
,
DefaultScreen
(
gdi_display
),
xf86vm_gammaramp_size
,
red
,
green
,
blue
);
if
(
ret
)
XSync
(
gdi_display
,
FALSE
);
if
(
X11DRV_check_error
())
ret
=
FALSE
;
if
(
red
!=
ramp
->
red
)
heap_free
(
red
);
return
ret
;
...
...
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