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
6a36802f
Commit
6a36802f
authored
May 06, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
May 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Use the BITMAPINFOHEADER structure to get icon bitcount.
parent
dbf123ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
icoformat.c
dlls/windowscodecs/icoformat.c
+4
-4
No files found.
dlls/windowscodecs/icoformat.c
View file @
6a36802f
...
...
@@ -189,7 +189,7 @@ static HRESULT IcoFrameDecode_ReadPixels(IcoFrameDecode *This)
hr
=
IStream_Read
(
This
->
parent
->
stream
,
&
bih
,
sizeof
(
BITMAPINFOHEADER
),
&
bytesread
);
if
(
FAILED
(
hr
)
||
bytesread
!=
sizeof
(
BITMAPINFOHEADER
))
goto
fail
;
if
(
This
->
entry
.
w
BitCount
<=
8
)
if
(
bih
.
bi
BitCount
<=
8
)
{
/* read the palette */
colorcount
=
This
->
entry
.
bColorCount
?
This
->
entry
.
bColorCount
:
256
;
...
...
@@ -202,7 +202,7 @@ static HRESULT IcoFrameDecode_ReadPixels(IcoFrameDecode *This)
bitsSize
=
bitsStride
*
height
;
/* read the XOR data */
switch
(
This
->
entry
.
w
BitCount
)
switch
(
bih
.
bi
BitCount
)
{
case
1
:
{
...
...
@@ -440,11 +440,11 @@ static HRESULT IcoFrameDecode_ReadPixels(IcoFrameDecode *This)
break
;
}
default:
FIXME
(
"unsupported bitcount: %u
\n
"
,
This
->
entry
.
w
BitCount
);
FIXME
(
"unsupported bitcount: %u
\n
"
,
bih
.
bi
BitCount
);
goto
fail
;
}
if
(
This
->
entry
.
w
BitCount
<
32
)
if
(
bih
.
bi
BitCount
<
32
)
{
/* set alpha data based on the AND mask */
UINT
andBytesPerRow
=
(
width
+
31
)
/
32
*
4
;
...
...
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