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
f97bf3e6
Commit
f97bf3e6
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: imagelist: Remove more 1xN assumptions.
parent
5f89960a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
imagelist.c
dlls/comctl32/imagelist.c
+9
-6
No files found.
dlls/comctl32/imagelist.c
View file @
f97bf3e6
...
...
@@ -2548,8 +2548,9 @@ ImageList_SetIconSize (HIMAGELIST himl, INT cx, INT cy)
himl
->
hbmImage
=
hbmNew
;
if
(
himl
->
hbmMask
)
{
hbmNew
=
CreateBitmap
(
himl
->
cMaxImage
*
himl
->
cx
,
himl
->
cy
,
1
,
1
,
NULL
);
SIZE
sz
;
imagelist_get_bitmap_size
(
himl
,
himl
->
cMaxImage
,
himl
->
cy
,
&
sz
);
hbmNew
=
CreateBitmap
(
sz
.
cx
,
sz
.
cy
,
1
,
1
,
NULL
);
SelectObject
(
himl
->
hdcMask
,
hbmNew
);
DeleteObject
(
himl
->
hbmMask
);
himl
->
hbmMask
=
hbmNew
;
...
...
@@ -2847,7 +2848,9 @@ static HBITMAP ImageList_CreateImage(HDC hdc, HIMAGELIST himl, UINT count, UINT
{
HBITMAP
hbmNewBitmap
;
UINT
ilc
=
(
himl
->
flags
&
0xFE
);
UINT
width
=
count
*
himl
->
cx
;
SIZE
sz
;
imagelist_get_bitmap_size
(
himl
,
count
,
height
,
&
sz
);
if
((
ilc
>=
ILC_COLOR4
&&
ilc
<=
ILC_COLOR32
)
||
ilc
==
ILC_COLOR
)
{
...
...
@@ -2884,8 +2887,8 @@ static HBITMAP ImageList_CreateImage(HDC hdc, HIMAGELIST himl, UINT count, UINT
}
bmi
->
bmiHeader
.
biSize
=
sizeof
(
BITMAPINFOHEADER
);
bmi
->
bmiHeader
.
biWidth
=
width
;
bmi
->
bmiHeader
.
biHeight
=
height
;
bmi
->
bmiHeader
.
biWidth
=
sz
.
cx
;
bmi
->
bmiHeader
.
biHeight
=
sz
.
cy
;
bmi
->
bmiHeader
.
biPlanes
=
1
;
bmi
->
bmiHeader
.
biBitCount
=
himl
->
uBitsPixel
;
bmi
->
bmiHeader
.
biCompression
=
BI_RGB
;
...
...
@@ -2903,7 +2906,7 @@ static HBITMAP ImageList_CreateImage(HDC hdc, HIMAGELIST himl, UINT count, UINT
{
TRACE
(
"Creating Bitmap: %d Bits per Pixel
\n
"
,
himl
->
uBitsPixel
);
hbmNewBitmap
=
CreateBitmap
(
width
,
height
,
1
,
himl
->
uBitsPixel
,
NULL
);
hbmNewBitmap
=
CreateBitmap
(
sz
.
cx
,
sz
.
cy
,
1
,
himl
->
uBitsPixel
,
NULL
);
}
TRACE
(
"returning %p
\n
"
,
hbmNewBitmap
);
return
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