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
ca6be708
Commit
ca6be708
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_Merge.
parent
9cd86ddd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
imagelist.c
dlls/comctl32/imagelist.c
+8
-8
No files found.
dlls/comctl32/imagelist.c
View file @
ca6be708
...
...
@@ -1773,7 +1773,7 @@ ImageList_Merge (HIMAGELIST himl1, INT i1, HIMAGELIST himl2, INT i2,
HIMAGELIST
himlDst
=
NULL
;
INT
cxDst
,
cyDst
;
INT
xOff1
,
yOff1
,
xOff2
,
yOff2
;
INT
nX1
,
nX
2
;
POINT
pt1
,
pt
2
;
TRACE
(
"(himl1=%p i1=%d himl2=%p i2=%d dx=%d dy=%d)
\n
"
,
himl1
,
i1
,
himl2
,
i2
,
dx
,
dy
);
...
...
@@ -1817,25 +1817,25 @@ ImageList_Merge (HIMAGELIST himl1, INT i1, HIMAGELIST himl2, INT i2,
if
(
himlDst
)
{
nX1
=
i1
*
himl1
->
cx
;
nX2
=
i2
*
himl2
->
cx
;
imagelist_point_from_index
(
himl1
,
i1
,
&
pt1
)
;
imagelist_point_from_index
(
himl1
,
i2
,
&
pt2
)
;
/* copy image */
BitBlt
(
himlDst
->
hdcImage
,
0
,
0
,
cxDst
,
cyDst
,
himl1
->
hdcImage
,
0
,
0
,
BLACKNESS
);
if
(
i1
>=
0
&&
i1
<
himl1
->
cCurImage
)
BitBlt
(
himlDst
->
hdcImage
,
xOff1
,
yOff1
,
himl1
->
cx
,
himl1
->
cy
,
himl1
->
hdcImage
,
nX1
,
0
,
SRCCOPY
);
BitBlt
(
himlDst
->
hdcImage
,
xOff1
,
yOff1
,
himl1
->
cx
,
himl1
->
cy
,
himl1
->
hdcImage
,
pt1
.
x
,
pt1
.
y
,
SRCCOPY
);
if
(
i2
>=
0
&&
i2
<
himl2
->
cCurImage
)
{
BitBlt
(
himlDst
->
hdcImage
,
xOff2
,
yOff2
,
himl2
->
cx
,
himl2
->
cy
,
himl2
->
hdcMask
,
nX2
,
0
,
SRCAND
);
BitBlt
(
himlDst
->
hdcImage
,
xOff2
,
yOff2
,
himl2
->
cx
,
himl2
->
cy
,
himl2
->
hdcImage
,
nX2
,
0
,
SRCPAINT
);
BitBlt
(
himlDst
->
hdcImage
,
xOff2
,
yOff2
,
himl2
->
cx
,
himl2
->
cy
,
himl2
->
hdcMask
,
pt2
.
x
,
pt2
.
y
,
SRCAND
);
BitBlt
(
himlDst
->
hdcImage
,
xOff2
,
yOff2
,
himl2
->
cx
,
himl2
->
cy
,
himl2
->
hdcImage
,
pt2
.
x
,
pt2
.
y
,
SRCPAINT
);
}
/* copy mask */
BitBlt
(
himlDst
->
hdcMask
,
0
,
0
,
cxDst
,
cyDst
,
himl1
->
hdcMask
,
0
,
0
,
WHITENESS
);
if
(
i1
>=
0
&&
i1
<
himl1
->
cCurImage
)
BitBlt
(
himlDst
->
hdcMask
,
xOff1
,
yOff1
,
himl1
->
cx
,
himl1
->
cy
,
himl1
->
hdcMask
,
nX1
,
0
,
SRCCOPY
);
BitBlt
(
himlDst
->
hdcMask
,
xOff1
,
yOff1
,
himl1
->
cx
,
himl1
->
cy
,
himl1
->
hdcMask
,
pt1
.
x
,
pt1
.
y
,
SRCCOPY
);
if
(
i2
>=
0
&&
i2
<
himl2
->
cCurImage
)
BitBlt
(
himlDst
->
hdcMask
,
xOff2
,
yOff2
,
himl2
->
cx
,
himl2
->
cy
,
himl2
->
hdcMask
,
nX2
,
0
,
SRCAND
);
BitBlt
(
himlDst
->
hdcMask
,
xOff2
,
yOff2
,
himl2
->
cx
,
himl2
->
cy
,
himl2
->
hdcMask
,
pt2
.
x
,
pt2
.
y
,
SRCAND
);
himlDst
->
cCurImage
=
1
;
}
...
...
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