[PATCH 4/5] user32: Remove unused parameter mask from create_alpha_bitmap.
Alex Henrie
alexhenrie24 at gmail.com
Sun Oct 4 22:27:56 CDT 2015
Identified by manual inspection.
See also: bb33cebe3f7b24759aa47238a33197bbf73cfcb1
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/user32/cursoricon.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index b94a177..6a05822 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -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)
{
--
2.6.0
More information about the wine-patches
mailing list