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
753de28c
Commit
753de28c
authored
Oct 07, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Correctly handle the ImageList index in BeginDrag().
parent
cf8e3c9a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
imagelist.c
dlls/comctl32/imagelist.c
+10
-4
No files found.
dlls/comctl32/imagelist.c
View file @
753de28c
...
@@ -599,6 +599,7 @@ ImageList_BeginDrag (HIMAGELIST himlTrack, INT iTrack,
...
@@ -599,6 +599,7 @@ ImageList_BeginDrag (HIMAGELIST himlTrack, INT iTrack,
INT
dxHotspot
,
INT
dyHotspot
)
INT
dxHotspot
,
INT
dyHotspot
)
{
{
INT
cx
,
cy
;
INT
cx
,
cy
;
POINT
src
,
dst
;
TRACE
(
"(himlTrack=%p iTrack=%d dx=%d dy=%d)
\n
"
,
himlTrack
,
iTrack
,
TRACE
(
"(himlTrack=%p iTrack=%d dx=%d dy=%d)
\n
"
,
himlTrack
,
iTrack
,
dxHotspot
,
dyHotspot
);
dxHotspot
,
dyHotspot
);
...
@@ -606,6 +607,9 @@ ImageList_BeginDrag (HIMAGELIST himlTrack, INT iTrack,
...
@@ -606,6 +607,9 @@ ImageList_BeginDrag (HIMAGELIST himlTrack, INT iTrack,
if
(
!
is_valid
(
himlTrack
))
if
(
!
is_valid
(
himlTrack
))
return
FALSE
;
return
FALSE
;
if
(
iTrack
>=
himlTrack
->
cCurImage
)
return
FALSE
;
if
(
InternalDrag
.
himl
)
if
(
InternalDrag
.
himl
)
ImageList_EndDrag
();
ImageList_EndDrag
();
...
@@ -622,10 +626,12 @@ ImageList_BeginDrag (HIMAGELIST himlTrack, INT iTrack,
...
@@ -622,10 +626,12 @@ ImageList_BeginDrag (HIMAGELIST himlTrack, INT iTrack,
InternalDrag
.
dyHotspot
=
dyHotspot
;
InternalDrag
.
dyHotspot
=
dyHotspot
;
/* copy image */
/* copy image */
BitBlt
(
InternalDrag
.
himl
->
hdcImage
,
0
,
0
,
cx
,
cy
,
himlTrack
->
hdcImage
,
iTrack
*
cx
,
0
,
SRCCOPY
);
imagelist_point_from_index
(
InternalDrag
.
himl
,
0
,
&
dst
);
imagelist_point_from_index
(
himlTrack
,
iTrack
,
&
src
);
/* copy mask */
BitBlt
(
InternalDrag
.
himl
->
hdcImage
,
dst
.
x
,
dst
.
y
,
cx
,
cy
,
himlTrack
->
hdcImage
,
src
.
x
,
src
.
y
,
BitBlt
(
InternalDrag
.
himl
->
hdcMask
,
0
,
0
,
cx
,
cy
,
himlTrack
->
hdcMask
,
iTrack
*
cx
,
0
,
SRCCOPY
);
SRCCOPY
);
BitBlt
(
InternalDrag
.
himl
->
hdcMask
,
dst
.
x
,
dst
.
y
,
cx
,
cy
,
himlTrack
->
hdcMask
,
src
.
x
,
src
.
y
,
SRCCOPY
);
InternalDrag
.
himl
->
cCurImage
=
1
;
InternalDrag
.
himl
->
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