Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9c750bb9
Commit
9c750bb9
authored
Oct 04, 2015
by
Alex Henrie
Committed by
Alexandre Julliard
Oct 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Remove unused parameter mask from create_alpha_bitmap.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
parent
be5015fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
cursoricon.c
dlls/user32/cursoricon.c
+3
-4
No files found.
dlls/user32/cursoricon.c
View file @
9c750bb9
...
...
@@ -725,8 +725,7 @@ static BOOL bmi_has_alpha( const BITMAPINFO *info, const void *bits )
*
* Create the alpha bitmap for a 32-bpp icon that has an alpha channel.
*/
static
HBITMAP
create_alpha_bitmap
(
HBITMAP
color
,
HBITMAP
mask
,
const
BITMAPINFO
*
src_info
,
const
void
*
color_bits
)
static
HBITMAP
create_alpha_bitmap
(
HBITMAP
color
,
const
BITMAPINFO
*
src_info
,
const
void
*
color_bits
)
{
HBITMAP
alpha
=
0
;
BITMAPINFO
*
info
=
NULL
;
...
...
@@ -904,7 +903,7 @@ static HICON create_icon_from_bmi( const BITMAPINFO *bmi, DWORD maxsize, HMODULE
color_bits
,
bmi_copy
,
DIB_RGB_COLORS
,
SRCCOPY
);
if
(
bmi_has_alpha
(
bmi_copy
,
color_bits
))
alpha
=
create_alpha_bitmap
(
color
,
mask
,
bmi_copy
,
color_bits
);
alpha
=
create_alpha_bitmap
(
color
,
bmi_copy
,
color_bits
);
/* convert info to monochrome to copy the mask */
bmi_copy
->
bmiHeader
.
biBitCount
=
1
;
...
...
@@ -2195,7 +2194,7 @@ HICON WINAPI CreateIconIndirect(PICONINFO iconinfo)
frame
->
height
=
height
;
frame
->
color
=
color
;
frame
->
mask
=
mask
;
frame
->
alpha
=
create_alpha_bitmap
(
iconinfo
->
hbmColor
,
mask
,
NULL
,
NULL
);
frame
->
alpha
=
create_alpha_bitmap
(
iconinfo
->
hbmColor
,
NULL
,
NULL
);
release_icon_frame
(
info
,
frame
);
if
(
info
->
is_icon
)
{
...
...
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