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
84dff04e
Commit
84dff04e
authored
Aug 20, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement CopyPixels for 32-bit ICO icons.
parent
e743a7a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
icoformat.c
dlls/windowscodecs/icoformat.c
+32
-0
No files found.
dlls/windowscodecs/icoformat.c
View file @
84dff04e
...
...
@@ -406,6 +406,38 @@ static HRESULT IcoFrameDecode_ReadPixels(IcoFrameDecode *This)
HeapFree
(
GetProcessHeap
(),
0
,
tempdata
);
break
;
}
case
32
:
{
UINT
xorBytesPerRow
=
width
*
4
;
UINT
xorBytes
=
xorBytesPerRow
*
height
;
bits
=
HeapAlloc
(
GetProcessHeap
(),
0
,
xorBytes
);
if
(
!
bits
)
{
hr
=
E_OUTOFMEMORY
;
goto
fail
;
}
if
(
bih
.
biHeight
>
0
)
/* bottom-up DIB */
{
/* read the rows backwards so we get a top-down DIB */
UINT
i
;
BYTE
*
xorRow
=
bits
+
xorBytesPerRow
*
(
height
-
1
);
for
(
i
=
0
;
i
<
height
;
i
++
)
{
hr
=
IStream_Read
(
This
->
parent
->
stream
,
xorRow
,
xorBytesPerRow
,
&
bytesread
);
if
(
FAILED
(
hr
)
||
bytesread
!=
xorBytesPerRow
)
goto
fail
;
xorRow
-=
xorBytesPerRow
;
}
}
else
/* top-down DIB */
{
hr
=
IStream_Read
(
This
->
parent
->
stream
,
bits
,
xorBytes
,
&
bytesread
);
if
(
FAILED
(
hr
)
||
bytesread
!=
xorBytes
)
goto
fail
;
}
break
;
}
default:
FIXME
(
"unsupported bitcount: %u
\n
"
,
This
->
entry
.
wBitCount
);
goto
fail
;
...
...
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