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
9cd86ddd
Commit
9cd86ddd
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 Nx1 assumptions in ImageList_GetIcon().
parent
1328ca57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
imagelist.c
dlls/comctl32/imagelist.c
+5
-2
No files found.
dlls/comctl32/imagelist.c
View file @
9cd86ddd
...
...
@@ -1441,6 +1441,7 @@ ImageList_GetIcon (HIMAGELIST himl, INT i, UINT fStyle)
HICON
hIcon
;
HBITMAP
hOldDstBitmap
;
HDC
hdcDst
;
POINT
pt
;
TRACE
(
"%p %d %d
\n
"
,
himl
,
i
,
fStyle
);
if
(
!
is_valid
(
himl
)
||
(
i
<
0
)
||
(
i
>=
himl
->
cCurImage
))
return
NULL
;
...
...
@@ -1456,12 +1457,14 @@ ImageList_GetIcon (HIMAGELIST himl, INT i, UINT fStyle)
hdcDst
=
CreateCompatibleDC
(
0
);
imagelist_point_from_index
(
himl
,
i
,
&
pt
);
/* draw mask*/
ii
.
hbmMask
=
CreateBitmap
(
himl
->
cx
,
himl
->
cy
,
1
,
1
,
NULL
);
hOldDstBitmap
=
SelectObject
(
hdcDst
,
ii
.
hbmMask
);
if
(
himl
->
hbmMask
)
{
BitBlt
(
hdcDst
,
0
,
0
,
himl
->
cx
,
himl
->
cy
,
himl
->
hdcMask
,
i
*
himl
->
cx
,
0
,
SRCCOPY
);
himl
->
hdcMask
,
pt
.
x
,
pt
.
y
,
SRCCOPY
);
}
else
PatBlt
(
hdcDst
,
0
,
0
,
himl
->
cx
,
himl
->
cy
,
BLACKNESS
);
...
...
@@ -1469,7 +1472,7 @@ ImageList_GetIcon (HIMAGELIST himl, INT i, UINT fStyle)
/* draw image*/
SelectObject
(
hdcDst
,
ii
.
hbmColor
);
BitBlt
(
hdcDst
,
0
,
0
,
himl
->
cx
,
himl
->
cy
,
himl
->
hdcImage
,
i
*
himl
->
cx
,
0
,
SRCCOPY
);
himl
->
hdcImage
,
pt
.
x
,
pt
.
y
,
SRCCOPY
);
/*
* CreateIconIndirect requires us to deselect the bitmaps from
...
...
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