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
67728733
Commit
67728733
authored
Nov 05, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Remove a Nx1 assuption in ImageList_AddMasked().
parent
49df0467
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
imagelist.c
dlls/comctl32/imagelist.c
+2
-4
No files found.
dlls/comctl32/imagelist.c
View file @
67728733
...
...
@@ -300,7 +300,7 @@ INT WINAPI
ImageList_AddMasked
(
HIMAGELIST
himl
,
HBITMAP
hBitmap
,
COLORREF
clrMask
)
{
HDC
hdcMask
,
hdcBitmap
;
INT
nIndex
,
nImageCount
,
nMaskXOffset
=
0
;
INT
nIndex
,
nImageCount
;
BITMAP
bmp
;
HBITMAP
hOldBitmap
;
HBITMAP
hMaskBitmap
=
0
;
...
...
@@ -331,7 +331,6 @@ ImageList_AddMasked (HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
if
(
himl
->
hbmMask
)
{
hdcMask
=
himl
->
hdcMask
;
nMaskXOffset
=
nIndex
*
himl
->
cx
;
imagelist_point_from_index
(
himl
,
nIndex
,
&
pt
);
}
else
...
...
@@ -343,7 +342,6 @@ ImageList_AddMasked (HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
hdcMask
=
CreateCompatibleDC
(
0
);
hMaskBitmap
=
CreateBitmap
(
bmp
.
bmWidth
,
bmp
.
bmHeight
,
1
,
1
,
NULL
);
SelectObject
(
hdcMask
,
hMaskBitmap
);
nMaskXOffset
=
0
;
imagelist_point_from_index
(
himl
,
0
,
&
pt
);
}
/* create monochrome image to the mask bitmap */
...
...
@@ -370,7 +368,7 @@ ImageList_AddMasked (HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
BitBlt
(
hdcBitmap
,
0
,
0
,
bmp
.
bmWidth
,
bmp
.
bmHeight
,
hdcMask
,
nMaskXOffset
,
0
,
pt
.
x
,
pt
.
y
,
0x220326
);
/* NOTSRCAND */
/* Copy result to the imagelist
*/
...
...
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