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
7370fc0e
Commit
7370fc0e
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: Create a helper function to copy a block of images.
parent
83149b1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
imagelist.c
dlls/comctl32/imagelist.c
+19
-10
No files found.
dlls/comctl32/imagelist.c
View file @
7370fc0e
...
...
@@ -96,6 +96,18 @@ static inline void imagelist_get_bitmap_size( HIMAGELIST himl, UINT count, UINT
sz
->
cy
=
cy
;
}
static
inline
void
imagelist_copy_images
(
HIMAGELIST
himl
,
HDC
hdcSrc
,
HDC
hdcDest
,
UINT
src
,
UINT
count
,
UINT
dest
)
{
POINT
ptSrc
,
ptDest
;
SIZE
sz
;
imagelist_point_from_index
(
himl
,
src
,
&
ptSrc
);
imagelist_point_from_index
(
himl
,
dest
,
&
ptDest
);
imagelist_get_bitmap_size
(
himl
,
count
,
himl
->
cy
,
&
sz
);
BitBlt
(
hdcDest
,
ptSrc
.
x
,
ptSrc
.
y
,
sz
.
cx
,
sz
.
cy
,
hdcSrc
,
ptDest
.
x
,
ptDest
.
y
,
SRCCOPY
);
}
/*************************************************************************
* IMAGELIST_InternalExpandBitmaps [Internal]
*
...
...
@@ -2124,32 +2136,29 @@ ImageList_Remove (HIMAGELIST himl, INT i)
/* copy all images and masks prior to the "removed" image */
if
(
i
>
0
)
{
SIZE
sz
;
TRACE
(
"Pre image copy: Copy %d images
\n
"
,
i
);
SelectObject
(
hdcBmp
,
hbmNewImage
);
imagelist_get_bitmap_size
(
himl
,
i
,
himl
->
cy
,
&
sz
);
BitBlt
(
hdcBmp
,
0
,
0
,
sz
.
cx
,
sz
.
cy
,
himl
->
hdcImage
,
0
,
0
,
SRCCOPY
);
imagelist_copy_images
(
himl
,
himl
->
hdcImage
,
hdcBmp
,
0
,
i
,
0
);
if
(
himl
->
hbmMask
)
{
SelectObject
(
hdcBmp
,
hbmNewMask
);
BitBlt
(
hdcBmp
,
0
,
0
,
sz
.
cx
,
sz
.
cy
,
himl
->
hdcMask
,
0
,
0
,
SRCCOPY
);
imagelist_copy_images
(
himl
,
himl
->
hdcMask
,
hdcBmp
,
0
,
i
,
0
);
}
}
/* copy all images and masks behind the removed image */
if
(
i
<
himl
->
cCurImage
-
1
)
{
TRACE
(
"Post image copy!
\n
"
);
SelectObject
(
hdcBmp
,
hbmNewImage
);
BitBlt
(
hdcBmp
,
i
*
himl
->
cx
,
0
,
(
himl
->
cCurImage
-
i
-
1
)
*
himl
->
cx
,
himl
->
cy
,
himl
->
hdcImage
,
(
i
+
1
)
*
himl
->
cx
,
0
,
SRCCOPY
);
imagelist_copy_images
(
himl
,
himl
->
hdcImage
,
hdcBmp
,
i
,
(
himl
->
cCurImage
-
i
-
1
),
i
+
1
);
if
(
himl
->
hbmMask
)
{
SelectObject
(
hdcBmp
,
hbmNewMask
);
BitBlt
(
hdcBmp
,
i
*
himl
->
cx
,
0
,
(
himl
->
cCurImage
-
i
-
1
)
*
himl
->
cx
,
himl
->
cy
,
himl
->
hdcMask
,
(
i
+
1
)
*
himl
->
cx
,
0
,
SRCCOPY
);
imagelist_copy_images
(
himl
,
himl
->
hdcMask
,
hdcBmp
,
i
,
(
himl
->
cCurImage
-
i
-
1
),
i
+
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