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
5f89960a
Commit
5f89960a
authored
Nov 02, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Remove a redundant variable.
parent
a27ae792
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
imagelist.c
dlls/comctl32/imagelist.c
+6
-7
No files found.
dlls/comctl32/imagelist.c
View file @
5f89960a
...
...
@@ -116,7 +116,7 @@ IMAGELIST_InternalExpandBitmaps (HIMAGELIST himl, INT nImageCount, INT cx, INT c
{
HDC
hdcBitmap
;
HBITMAP
hbmNewBitmap
,
hbmNull
;
INT
nNew
Width
,
nNew
Count
;
INT
nNewCount
;
SIZE
sz
;
if
((
himl
->
cCurImage
+
nImageCount
<=
himl
->
cMaxImage
)
...
...
@@ -125,17 +125,16 @@ IMAGELIST_InternalExpandBitmaps (HIMAGELIST himl, INT nImageCount, INT cx, INT c
if
(
cy
==
0
)
cy
=
himl
->
cy
;
nNewCount
=
himl
->
cCurImage
+
nImageCount
+
himl
->
cGrow
;
nNewWidth
=
nNewCount
*
himl
->
cx
;
TRACE
(
"Create expanded bitmaps : himl=%p x=%d y=%d count=%d
\n
"
,
himl
,
nNewWidth
,
cy
,
nNewCount
);
imagelist_get_bitmap_size
(
himl
,
nNewCount
,
cy
,
&
sz
);
TRACE
(
"Create expanded bitmaps : himl=%p x=%d y=%d count=%d
\n
"
,
himl
,
sz
.
cx
,
cy
,
nNewCount
);
hdcBitmap
=
CreateCompatibleDC
(
0
);
hbmNewBitmap
=
ImageList_CreateImage
(
hdcBitmap
,
himl
,
nNewCount
,
cy
);
if
(
hbmNewBitmap
==
0
)
ERR
(
"creating new image bitmap (x=%d y=%d)!
\n
"
,
nNewWidth
,
cy
);
imagelist_get_bitmap_size
(
himl
,
nNewCount
,
cy
,
&
sz
);
ERR
(
"creating new image bitmap (x=%d y=%d)!
\n
"
,
sz
.
cx
,
cy
);
if
(
himl
->
cCurImage
)
{
...
...
@@ -150,7 +149,7 @@ IMAGELIST_InternalExpandBitmaps (HIMAGELIST himl, INT nImageCount, INT cx, INT c
if
(
himl
->
flags
&
ILC_MASK
)
{
hbmNewBitmap
=
CreateBitmap
(
nNewWidth
,
cy
,
1
,
1
,
NULL
);
hbmNewBitmap
=
CreateBitmap
(
sz
.
cx
,
sz
.
cy
,
1
,
1
,
NULL
);
if
(
hbmNewBitmap
==
0
)
ERR
(
"creating new mask bitmap!
\n
"
);
...
...
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