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
e10302d9
Commit
e10302d9
authored
Jul 30, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Implement IDirectDraw7::GetFourCCCodes.
parent
c1bbab7c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
ddraw.c
dlls/ddraw/ddraw.c
+33
-2
No files found.
dlls/ddraw/ddraw.c
View file @
e10302d9
...
...
@@ -879,9 +879,40 @@ IDirectDrawImpl_GetFourCCCodes(IDirectDraw7 *iface,
DWORD
*
NumCodes
,
DWORD
*
Codes
)
{
ICOM_THIS_FROM
(
IDirectDrawImpl
,
IDirectDraw7
,
iface
);
FIXME
(
"(%p)->(%p, %p): Stub!
\n
"
,
This
,
NumCodes
,
Codes
);
WINED3DFORMAT
formats
[]
=
{
WINED3DFMT_YUY2
,
WINED3DFMT_UYVY
,
WINED3DFMT_DXT1
,
WINED3DFMT_DXT2
,
WINED3DFMT_DXT3
,
WINED3DFMT_DXT4
,
WINED3DFMT_DXT5
,
};
DWORD
count
=
0
,
i
,
outsize
;
HRESULT
hr
;
WINED3DDISPLAYMODE
d3ddm
;
TRACE
(
"(%p)->(%p, %p)
\n
"
,
This
,
NumCodes
,
Codes
);
IWineD3DDevice_GetDisplayMode
(
This
->
wineD3DDevice
,
0
/* swapchain 0 */
,
&
d3ddm
);
outsize
=
NumCodes
&&
Codes
?
*
NumCodes
:
0
;
if
(
NumCodes
)
*
NumCodes
=
0
;
for
(
i
=
0
;
i
<
(
sizeof
(
formats
)
/
sizeof
(
formats
[
0
]));
i
++
)
{
hr
=
IWineD3D_CheckDeviceFormat
(
This
->
wineD3D
,
WINED3DADAPTER_DEFAULT
,
WINED3DDEVTYPE_HAL
,
d3ddm
.
Format
/* AdapterFormat */
,
0
/* usage */
,
WINED3DRTYPE_SURFACE
,
formats
[
i
]);
if
(
SUCCEEDED
(
hr
))
{
if
(
count
<
outsize
)
{
Codes
[
count
]
=
formats
[
i
];
}
count
++
;
}
}
if
(
NumCodes
)
{
TRACE
(
"Returning %u FourCC codes
\n
"
,
count
);
*
NumCodes
=
count
;
}
return
DD_OK
;
}
...
...
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