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
430c8aa9
Commit
430c8aa9
authored
Dec 16, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Don't try to alpha blend icons on low color bitmaps.
parent
e0fc985f
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 @
430c8aa9
...
@@ -2288,15 +2288,15 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon,
...
@@ -2288,15 +2288,15 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon,
if
(
frame
->
alpha
&&
(
flags
&
DI_IMAGE
))
if
(
frame
->
alpha
&&
(
flags
&
DI_IMAGE
))
{
{
BOOL
is_mono
=
FALS
E
;
BOOL
alpha_blend
=
TRU
E
;
if
(
GetObjectType
(
hdc_dest
)
==
OBJ_MEMDC
)
if
(
GetObjectType
(
hdc_dest
)
==
OBJ_MEMDC
)
{
{
BITMAP
bm
;
BITMAP
bm
;
HBITMAP
bmp
=
GetCurrentObject
(
hdc_dest
,
OBJ_BITMAP
);
HBITMAP
bmp
=
GetCurrentObject
(
hdc_dest
,
OBJ_BITMAP
);
is_mono
=
GetObjectW
(
bmp
,
sizeof
(
bm
),
&
bm
)
&&
bm
.
bmBitsPixel
==
1
;
alpha_blend
=
GetObjectW
(
bmp
,
sizeof
(
bm
),
&
bm
)
&&
bm
.
bmBitsPixel
>
8
;
}
}
if
(
!
is_mono
)
if
(
alpha_blend
)
{
{
BLENDFUNCTION
pixelblend
=
{
AC_SRC_OVER
,
0
,
255
,
AC_SRC_ALPHA
};
BLENDFUNCTION
pixelblend
=
{
AC_SRC_OVER
,
0
,
255
,
AC_SRC_ALPHA
};
SelectObject
(
hMemDC
,
frame
->
alpha
);
SelectObject
(
hMemDC
,
frame
->
alpha
);
...
...
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