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
d87715c8
Commit
d87715c8
authored
Jun 16, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Don't try to alpha blend icons when drawing to a monochrome device.
parent
cdf69470
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
cursoricon.c
dlls/user32/cursoricon.c
+14
-4
No files found.
dlls/user32/cursoricon.c
View file @
d87715c8
...
...
@@ -2054,11 +2054,21 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon,
if
(
ptr
->
alpha
&&
(
flags
&
DI_IMAGE
))
{
B
LENDFUNCTION
pixelblend
=
{
AC_SRC_OVER
,
0
,
255
,
AC_SRC_ALPHA
}
;
B
OOL
is_mono
=
FALSE
;
SelectObject
(
hMemDC
,
ptr
->
alpha
);
if
(
GdiAlphaBlend
(
hdc_dest
,
x
,
y
,
cxWidth
,
cyWidth
,
hMemDC
,
0
,
0
,
ptr
->
width
,
ptr
->
height
,
pixelblend
))
goto
done
;
if
(
GetObjectType
(
hdc_dest
)
==
OBJ_MEMDC
)
{
BITMAP
bm
;
HBITMAP
bmp
=
GetCurrentObject
(
hdc_dest
,
OBJ_BITMAP
);
is_mono
=
GetObjectW
(
bmp
,
sizeof
(
bm
),
&
bm
)
&&
bm
.
bmBitsPixel
==
1
;
}
if
(
!
is_mono
)
{
BLENDFUNCTION
pixelblend
=
{
AC_SRC_OVER
,
0
,
255
,
AC_SRC_ALPHA
};
SelectObject
(
hMemDC
,
ptr
->
alpha
);
if
(
GdiAlphaBlend
(
hdc_dest
,
x
,
y
,
cxWidth
,
cyWidth
,
hMemDC
,
0
,
0
,
ptr
->
width
,
ptr
->
height
,
pixelblend
))
goto
done
;
}
}
if
(
flags
&
DI_MASK
)
...
...
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