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
6b53cb27
Commit
6b53cb27
authored
Apr 17, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix the non-trivial case in color_over.
parent
62781a6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+3
-3
No files found.
dlls/gdiplus/gdiplus_private.h
View file @
6b53cb27
...
...
@@ -94,9 +94,9 @@ static inline ARGB color_over(ARGB bg, ARGB fg)
if
(
bg_alpha
==
0
)
return
fg
;
a
=
bg_alpha
+
fg_alpha
;
b
=
((
bg
&
0xff
)
*
bg_alpha
+
(
fg
&
0xff
)
*
fg_alpha
)
*
0xff
/
a
;
g
=
(((
bg
>>
8
)
&
0xff
)
*
bg_alpha
+
((
fg
>>
8
)
&
0xff
)
*
fg_alpha
)
*
0xff
/
a
;
r
=
(((
bg
>>
16
)
&
0xff
)
*
bg_alpha
+
((
fg
>>
16
)
&
0xff
)
*
fg_alpha
)
*
0xff
/
a
;
b
=
((
bg
&
0xff
)
*
bg_alpha
+
(
fg
&
0xff
)
*
fg_alpha
)
/
a
;
g
=
(((
bg
>>
8
)
&
0xff
)
*
bg_alpha
+
((
fg
>>
8
)
&
0xff
)
*
fg_alpha
)
/
a
;
r
=
(((
bg
>>
16
)
&
0xff
)
*
bg_alpha
+
((
fg
>>
16
)
&
0xff
)
*
fg_alpha
)
/
a
;
return
(
a
<<
24
)
|
(
r
<<
16
)
|
(
g
<<
8
)
|
b
;
}
...
...
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