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
c4773e18
Commit
c4773e18
authored
Mar 15, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Mar 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix rounding in premultiplied alpha conversion for cursors and icons.
Signed-off-by:
Jinoh Kang
<
jinoh.kang.kr@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0a4af87e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cursoricon.c
dlls/user32/cursoricon.c
+3
-3
No files found.
dlls/user32/cursoricon.c
View file @
c4773e18
...
@@ -775,9 +775,9 @@ static HBITMAP create_alpha_bitmap( HBITMAP color, const BITMAPINFO *src_info, c
...
@@ -775,9 +775,9 @@ static HBITMAP create_alpha_bitmap( HBITMAP color, const BITMAPINFO *src_info, c
for
(
i
=
0
,
ptr
=
bits
;
i
<
bm
.
bmWidth
*
bm
.
bmHeight
;
i
++
,
ptr
+=
4
)
for
(
i
=
0
,
ptr
=
bits
;
i
<
bm
.
bmWidth
*
bm
.
bmHeight
;
i
++
,
ptr
+=
4
)
{
{
unsigned
int
alpha
=
ptr
[
3
];
unsigned
int
alpha
=
ptr
[
3
];
ptr
[
0
]
=
ptr
[
0
]
*
alpha
/
255
;
ptr
[
0
]
=
(
ptr
[
0
]
*
alpha
+
127
)
/
255
;
ptr
[
1
]
=
ptr
[
1
]
*
alpha
/
255
;
ptr
[
1
]
=
(
ptr
[
1
]
*
alpha
+
127
)
/
255
;
ptr
[
2
]
=
ptr
[
2
]
*
alpha
/
255
;
ptr
[
2
]
=
(
ptr
[
2
]
*
alpha
+
127
)
/
255
;
}
}
done:
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