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
1e678669
Commit
1e678669
authored
Nov 15, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "comctl32: Fix a potential regression in ImageList_ReplaceIcon()."
This reverts commit
9e772d13
.
parent
fdd9a4e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
imagelist.c
dlls/comctl32/imagelist.c
+3
-7
No files found.
dlls/comctl32/imagelist.c
View file @
1e678669
...
...
@@ -2252,7 +2252,6 @@ ImageList_ReplaceIcon (HIMAGELIST himl, INT nIndex, HICON hIcon)
BITMAP
bmp
;
BOOL
ret
;
POINT
pt
;
INT
i
;
TRACE
(
"(%p %d %p)
\n
"
,
himl
,
nIndex
,
hIcon
);
...
...
@@ -2315,17 +2314,14 @@ ImageList_ReplaceIcon (HIMAGELIST himl, INT nIndex, HICON hIcon)
SetBkColor
(
himl
->
hdcImage
,
RGB
(
255
,
255
,
255
));
hbmOldSrc
=
SelectObject
(
hdcImage
,
ii
.
hbmColor
);
for
(
i
=
0
;
i
<
(
bmp
.
bmWidth
/
himl
->
cx
);
i
++
)
{
imagelist_point_from_index
(
himl
,
nIndex
+
i
,
&
pt
);
imagelist_point_from_index
(
himl
,
nIndex
,
&
pt
);
StretchBlt
(
himl
->
hdcImage
,
pt
.
x
,
pt
.
y
,
himl
->
cx
,
himl
->
cy
,
hdcImage
,
0
,
0
,
himl
->
cx
*
i
,
bmp
.
bmHeight
,
SRCCOPY
);
hdcImage
,
0
,
0
,
bmp
.
bmWidth
,
bmp
.
bmHeight
,
SRCCOPY
);
if
(
himl
->
hbmMask
)
{
SelectObject
(
hdcImage
,
ii
.
hbmMask
);
StretchBlt
(
himl
->
hdcMask
,
pt
.
x
,
pt
.
y
,
himl
->
cx
,
himl
->
cy
,
hdcImage
,
0
,
0
,
himl
->
cx
*
i
,
bmp
.
bmHeight
,
SRCCOPY
);
}
hdcImage
,
0
,
0
,
bmp
.
bmWidth
,
bmp
.
bmHeight
,
SRCCOPY
);
}
SelectObject
(
hdcImage
,
hbmOldSrc
);
...
...
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