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
a2e5321b
Commit
a2e5321b
authored
Aug 24, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Check for the TGA container format.
parent
c2533f36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
surface.c
dlls/d3dx9_36/surface.c
+7
-0
No files found.
dlls/d3dx9_36/surface.c
View file @
a2e5321b
...
...
@@ -27,6 +27,10 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3dx
);
/* Wine-specific WIC GUIDs */
DEFINE_GUID
(
GUID_WineContainerFormatTga
,
0x0c44fda1
,
0xa5c5
,
0x4298
,
0x96
,
0x85
,
0x47
,
0x3f
,
0xc1
,
0x7c
,
0xd3
,
0x22
);
/************************************************************
* D3DXGetImageInfoFromFileInMemory
*
...
...
@@ -93,6 +97,9 @@ HRESULT WINAPI D3DXGetImageInfoFromFileInMemory(LPCVOID data, UINT datasize, D3D
}
else
if
(
IsEqualGUID
(
&
container_format
,
&
GUID_ContainerFormatJpeg
))
{
TRACE
(
"File type is JPG
\n
"
);
info
->
ImageFileFormat
=
D3DXIFF_JPG
;
}
else
if
(
IsEqualGUID
(
&
container_format
,
&
GUID_WineContainerFormatTga
))
{
TRACE
(
"File type is TGA
\n
"
);
info
->
ImageFileFormat
=
D3DXIFF_TGA
;
}
else
{
WARN
(
"Unsupported image file format %s
\n
"
,
debugstr_guid
(
&
container_format
));
hr
=
D3DXERR_INVALIDDATA
;
...
...
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