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
ac964c3b
Commit
ac964c3b
authored
Apr 18, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement EnumZBufferFormats.
parent
a6206836
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
device.c
dlls/wined3d/device.c
+30
-2
No files found.
dlls/wined3d/device.c
View file @
ac964c3b
/*
* IWineD3DDevice implementation
*
* Copyright 2002 Lionel Ulmer
* Copyright 2002-2005 Jason Edmeades
* Copyright 2003-2004 Raphael Junqueira
* Copyright 2004 Christian Costa
* Copyright 2005 Oliver Stieber
* Copyright 2006 Stefan Dsinger for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -1814,8 +1816,34 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetDisplayMode(IWineD3DDevice *iface, UINT iSw
}
HRESULT
WINAPI
IWineD3DDeviceImpl_EnumZBufferFormats
(
IWineD3DDevice
*
iface
,
D3DCB_ENUMPIXELFORMATS
Callback
,
void
*
Context
)
{
FIXME
(
"This call is a d3d7 merge stub. It will be implemented later
\n
"
);
return
WINED3DERR_INVALIDCALL
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
HRESULT
ret
;
int
i
=
0
;
WINED3DFORMAT
FormatList
[]
=
{
WINED3DFMT_D16
,
WINED3DFMT_D32
,
WINED3DFMT_D24X4S4
,
WINED3DFMT_D24S8
,
WINED3DFMT_D24X8
,
WINED3DFMT_D15S1
,
WINED3DFMT_UNKNOWN
/* Terminate the list */
};
TRACE
(
"(%p)->(%p,%p)
\n
"
,
This
,
Callback
,
Context
);
while
(
FormatList
[
i
]
!=
WINED3DFMT_UNKNOWN
)
{
TRACE
(
"Enumerating %s
\n
"
,
debug_d3dformat
(
FormatList
[
i
]));
ret
=
Callback
((
IUnknown
*
)
This
,
FormatList
[
i
],
Context
);
if
(
ret
!=
DDENUMRET_OK
)
{
TRACE
(
"Enumeration cancelled by Application
\n
"
);
return
WINED3D_OK
;
}
i
++
;
}
TRACE
(
"End of Enumeration
\n
"
);
return
WINED3D_OK
;
}
HRESULT
WINAPI
IWineD3DDeviceImpl_EnumTextureFormats
(
IWineD3DDevice
*
iface
,
D3DCB_ENUMPIXELFORMATS
Callback
,
void
*
Context
)
{
...
...
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