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
fc5a7461
Commit
fc5a7461
authored
May 31, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jun 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: imagelist: Fix simultaneous selection of one bitmap into two device contexts.
parent
f083b3c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
imagelist.c
dlls/comctl32/imagelist.c
+5
-3
No files found.
dlls/comctl32/imagelist.c
View file @
fc5a7461
...
...
@@ -2563,7 +2563,7 @@ BOOL WINAPI
ImageList_SetImageCount
(
HIMAGELIST
himl
,
UINT
iImageCount
)
{
HDC
hdcBitmap
;
HBITMAP
hbmNewBitmap
;
HBITMAP
hbmNewBitmap
,
hbmOld
;
INT
nNewCount
,
nCopyCount
;
TRACE
(
"%p %d
\n
"
,
himl
,
iImageCount
);
...
...
@@ -2588,8 +2588,9 @@ ImageList_SetImageCount (HIMAGELIST himl, UINT iImageCount)
if
(
hbmNewBitmap
!=
0
)
{
SelectObject
(
hdcBitmap
,
hbmNewBitmap
);
hbmOld
=
SelectObject
(
hdcBitmap
,
hbmNewBitmap
);
imagelist_copy_images
(
himl
,
himl
->
hdcImage
,
hdcBitmap
,
0
,
nCopyCount
,
0
);
SelectObject
(
hdcBitmap
,
hbmOld
);
/* FIXME: delete 'empty' image space? */
...
...
@@ -2607,8 +2608,9 @@ ImageList_SetImageCount (HIMAGELIST himl, UINT iImageCount)
hbmNewBitmap
=
CreateBitmap
(
sz
.
cx
,
sz
.
cy
,
1
,
1
,
NULL
);
if
(
hbmNewBitmap
!=
0
)
{
SelectObject
(
hdcBitmap
,
hbmNewBitmap
);
hbmOld
=
SelectObject
(
hdcBitmap
,
hbmNewBitmap
);
imagelist_copy_images
(
himl
,
himl
->
hdcMask
,
hdcBitmap
,
0
,
nCopyCount
,
0
);
SelectObject
(
hdcBitmap
,
hbmOld
);
/* FIXME: delete 'empty' image space? */
...
...
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