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
1328ca57
Commit
1328ca57
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: Use imagelist_copy_images() in ImageList_SetImageCount().
parent
7370fc0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
22 deletions
+9
-22
imagelist.c
dlls/comctl32/imagelist.c
+9
-22
No files found.
dlls/comctl32/imagelist.c
View file @
1328ca57
...
...
@@ -2613,17 +2613,10 @@ ImageList_SetImageCount (HIMAGELIST himl, UINT iImageCount)
if
(
hbmNewBitmap
!=
0
)
{
SelectObject
(
hdcBitmap
,
hbmNewBitmap
);
imagelist_copy_images
(
himl
,
himl
->
hdcImage
,
hdcBitmap
,
0
,
nCopyCount
,
0
);
/* FIXME: delete 'empty' image space? */
/* copy images */
BitBlt
(
hdcBitmap
,
0
,
0
,
nCopyCount
*
himl
->
cx
,
himl
->
cy
,
himl
->
hdcImage
,
0
,
0
,
SRCCOPY
);
#if 0
/* delete 'empty' image space */
SetBkColor (hdcBitmap, RGB(255, 255, 255));
SetTextColor (hdcBitmap, RGB(0, 0, 0));
PatBlt (hdcBitmap, nCopyCount * himl->cx, 0,
(nNewCount - nCopyCount) * himl->cx, himl->cy, BLACKNESS);
#endif
SelectObject
(
himl
->
hdcImage
,
hbmNewBitmap
);
DeleteObject
(
himl
->
hbmImage
);
himl
->
hbmImage
=
hbmNewBitmap
;
...
...
@@ -2633,22 +2626,16 @@ ImageList_SetImageCount (HIMAGELIST himl, UINT iImageCount)
if
(
himl
->
hbmMask
)
{
hbmNewBitmap
=
CreateBitmap
(
nNewCount
*
himl
->
cx
,
himl
->
cy
,
1
,
1
,
NULL
);
SIZE
sz
;
imagelist_get_bitmap_size
(
himl
,
nNewCount
,
himl
->
cy
,
&
sz
);
hbmNewBitmap
=
CreateBitmap
(
sz
.
cx
,
sz
.
cy
,
1
,
1
,
NULL
);
if
(
hbmNewBitmap
!=
0
)
{
SelectObject
(
hdcBitmap
,
hbmNewBitmap
);
imagelist_copy_images
(
himl
,
himl
->
hdcMask
,
hdcBitmap
,
0
,
nCopyCount
,
0
);
/* FIXME: delete 'empty' image space? */
/* copy images */
BitBlt
(
hdcBitmap
,
0
,
0
,
nCopyCount
*
himl
->
cx
,
himl
->
cy
,
himl
->
hdcMask
,
0
,
0
,
SRCCOPY
);
#if 0
/* delete 'empty' image space */
SetBkColor (hdcBitmap, RGB(255, 255, 255));
SetTextColor (hdcBitmap, RGB(0, 0, 0));
PatBlt (hdcBitmap, nCopyCount * himl->cx, 0,
(nNewCount - nCopyCount) * himl->cx, himl->cy, BLACKNESS);
#endif
SelectObject
(
himl
->
hdcMask
,
hbmNewBitmap
);
DeleteObject
(
himl
->
hbmMask
);
himl
->
hbmMask
=
hbmNewBitmap
;
...
...
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