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
a64400ec
Commit
a64400ec
authored
Oct 20, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Add support for 32-bit TGA images.
parent
6ecb8197
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
tgaformat.c
dlls/windowscodecs/tgaformat.c
+19
-0
No files found.
dlls/windowscodecs/tgaformat.c
View file @
a64400ec
...
...
@@ -517,6 +517,25 @@ static HRESULT WINAPI TgaDecoder_Frame_GetPixelFormat(IWICBitmapFrameDecode *ifa
case
24
:
memcpy
(
pPixelFormat
,
&
GUID_WICPixelFormat24bppBGR
,
sizeof
(
GUID
));
break
;
case
32
:
switch
(
attribute_type
)
{
case
ATTRIBUTE_NO_ALPHA
:
case
ATTRIBUTE_UNDEFINED
:
case
ATTRIBUTE_UNDEFINED_PRESERVE
:
memcpy
(
pPixelFormat
,
&
GUID_WICPixelFormat32bppBGR
,
sizeof
(
GUID
));
break
;
case
ATTRIBUTE_ALPHA
:
memcpy
(
pPixelFormat
,
&
GUID_WICPixelFormat32bppBGRA
,
sizeof
(
GUID
));
break
;
case
ATTRIBUTE_PALPHA
:
memcpy
(
pPixelFormat
,
&
GUID_WICPixelFormat32bppPBGRA
,
sizeof
(
GUID
));
break
;
default:
FIXME
(
"Unhandled 32-bit attribute type %u
\n
"
,
attribute_type
);
return
E_NOTIMPL
;
}
break
;
default:
FIXME
(
"Unhandled truecolor depth %u
\n
"
,
This
->
header
.
depth
);
return
E_NOTIMPL
;
...
...
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