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
075a1e0e
Commit
075a1e0e
authored
Dec 21, 2009
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
Dec 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix color mask handling in CreateIconIndirect.
parent
7ae21483
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
cursoricon.c
dlls/user32/cursoricon.c
+9
-9
No files found.
dlls/user32/cursoricon.c
View file @
075a1e0e
...
...
@@ -2218,24 +2218,24 @@ HICON WINAPI CreateIconIndirect(PICONINFO iconinfo)
}
else
{
HDC
hdc
,
hdc_mem
;
HBITMAP
hbmp_
old
,
hbmp_mem
_old
,
hbmp_mono
;
HDC
hdc
_mem
,
hdc_mem2
;
HBITMAP
hbmp_
mem_old
,
hbmp_mem2
_old
,
hbmp_mono
;
hdc
=
Get
DC
(
0
);
hdc_mem
=
CreateCompatibleDC
(
hdc
);
hdc
_mem
=
CreateCompatible
DC
(
0
);
hdc_mem
2
=
CreateCompatibleDC
(
0
);
hbmp_mono
=
CreateBitmap
(
bmpAnd
.
bmWidth
,
bmpAnd
.
bmHeight
,
1
,
1
,
NULL
);
hbmp_
old
=
SelectObject
(
hdc
,
iconinfo
->
hbmMask
);
hbmp_mem
_old
=
SelectObject
(
hdc_mem
,
hbmp_mono
);
hbmp_
mem_old
=
SelectObject
(
hdc_mem
,
iconinfo
->
hbmMask
);
hbmp_mem
2_old
=
SelectObject
(
hdc_mem2
,
hbmp_mono
);
BitBlt
(
hdc_mem
,
0
,
0
,
bmpAnd
.
bmWidth
,
bmpAnd
.
bmHeight
,
hdc
,
0
,
0
,
SRCCOPY
);
BitBlt
(
hdc_mem
2
,
0
,
0
,
bmpAnd
.
bmWidth
,
bmpAnd
.
bmHeight
,
hdc_mem
,
0
,
0
,
SRCCOPY
);
SelectObject
(
hdc
,
hbmp_old
);
SelectObject
(
hdc_mem
,
hbmp_mem_old
);
SelectObject
(
hdc_mem2
,
hbmp_mem2_old
);
DeleteDC
(
hdc_mem
);
ReleaseDC
(
0
,
hdc
);
DeleteDC
(
hdc_mem2
);
GetBitmapBits
(
hbmp_mono
,
sizeAnd
,
info
+
1
);
DeleteObject
(
hbmp_mono
);
...
...
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