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
8ab65c22
Commit
8ab65c22
authored
Feb 08, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Draw the mask with SRCCOPY in DrawIcon when the image isn't being drawn.
parent
976a3d5e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
cursoricon.c
dlls/user32/cursoricon.c
+2
-1
cursoricon.c
dlls/user32/tests/cursoricon.c
+2
-2
No files found.
dlls/user32/cursoricon.c
View file @
8ab65c22
...
...
@@ -2317,9 +2317,10 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon,
if
(
flags
&
DI_MASK
)
{
DWORD
rop
=
(
flags
&
DI_IMAGE
)
?
SRCAND
:
SRCCOPY
;
SelectObject
(
hMemDC
,
frame
->
mask
);
StretchBlt
(
hdc_dest
,
x
,
y
,
cxWidth
,
cyWidth
,
hMemDC
,
0
,
0
,
frame
->
width
,
frame
->
height
,
SRCAND
);
hMemDC
,
0
,
0
,
frame
->
width
,
frame
->
height
,
rop
);
}
if
(
flags
&
DI_IMAGE
)
...
...
dlls/user32/tests/cursoricon.c
View file @
8ab65c22
...
...
@@ -1926,8 +1926,8 @@ static void test_DrawIconEx(void)
check_DrawIconEx
(
hdcDst
,
FALSE
,
0x00A0B0C0
,
32
,
0
,
0x00102030
,
0x00102030
,
0x00102030
,
__LINE__
);
check_DrawIconEx
(
hdcDst
,
TRUE
,
0x00A0B0C0
,
32
,
0
,
0x00102030
,
0x00102030
,
0x00102030
,
__LINE__
);
check_DrawIconEx
(
hdcDst
,
FALSE
,
0x80A0B0C0
,
32
,
DI_MASK
,
0x00
FFFFFF
,
0x00000000
,
0x00000000
,
__LINE__
);
check_DrawIconEx
(
hdcDst
,
TRUE
,
0x80A0B0C0
,
32
,
DI_MASK
,
0x00
FFFFFF
,
0x00FFFFFF
,
0x00FFFFFF
,
__LINE__
);
check_DrawIconEx
(
hdcDst
,
FALSE
,
0x80A0B0C0
,
32
,
DI_MASK
,
0x00
123456
,
0x00000000
,
0x00000000
,
__LINE__
);
check_DrawIconEx
(
hdcDst
,
TRUE
,
0x80A0B0C0
,
32
,
DI_MASK
,
0x00
123456
,
0x00FFFFFF
,
0x00FFFFFF
,
__LINE__
);
check_DrawIconEx
(
hdcDst
,
FALSE
,
0x00A0B0C0
,
32
,
DI_IMAGE
,
0x00FFFFFF
,
0x00C0B0A0
,
0x00C0B0A0
,
__LINE__
);
check_DrawIconEx
(
hdcDst
,
TRUE
,
0x00A0B0C0
,
32
,
DI_IMAGE
,
0x00FFFFFF
,
0x00C0B0A0
,
0x00C0B0A0
,
__LINE__
);
...
...
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