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
e332ebb2
Commit
e332ebb2
authored
Dec 02, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Always ignore alpha channel with XRender gradients.
parent
c5bddce3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
xrender.c
dlls/winex11.drv/xrender.c
+2
-6
No files found.
dlls/winex11.drv/xrender.c
View file @
e332ebb2
...
...
@@ -2562,12 +2562,8 @@ static BOOL xrenderdrv_GradientFill( PHYSDEV dev, TRIVERTEX *vert_array, ULONG n
colors
[
1
].
red
=
v2
->
Red
*
257
/
256
;
colors
[
1
].
green
=
v2
->
Green
*
257
/
256
;
colors
[
1
].
blue
=
v2
->
Blue
*
257
/
256
;
if
(
has_alpha
(
physdev
->
format
))
{
colors
[
0
].
alpha
=
v1
->
Alpha
*
257
/
256
;
colors
[
1
].
alpha
=
v2
->
Alpha
*
257
/
256
;
}
else
colors
[
0
].
alpha
=
colors
[
1
].
alpha
=
65535
;
/* always ignore alpha since otherwise xrender will want to pre-multiply the colors */
colors
[
0
].
alpha
=
colors
[
1
].
alpha
=
65535
;
pt
[
0
].
x
=
v1
->
x
;
pt
[
0
].
y
=
v1
->
y
;
...
...
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