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
f282db24
Commit
f282db24
authored
Dec 09, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Implement IDXGIOutput::GetDisplayModeList().
parent
b85a0705
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
2 deletions
+46
-2
output.c
dlls/dxgi/output.c
+46
-2
No files found.
dlls/dxgi/output.c
View file @
f282db24
...
...
@@ -117,10 +117,54 @@ static HRESULT STDMETHODCALLTYPE dxgi_output_GetDesc(IDXGIOutput *iface, DXGI_OU
static
HRESULT
STDMETHODCALLTYPE
dxgi_output_GetDisplayModeList
(
IDXGIOutput
*
iface
,
DXGI_FORMAT
format
,
UINT
flags
,
UINT
*
mode_count
,
DXGI_MODE_DESC
*
desc
)
{
FIXME
(
"iface %p, format %s, flags %#x, mode_count %p, desc %p stub!
\n
"
,
struct
dxgi_output
*
This
=
(
struct
dxgi_output
*
)
iface
;
WINED3DFORMAT
wined3d_format
;
IWineD3D
*
wined3d
;
UINT
i
;
TRACE
(
"iface %p, format %s, flags %#x, mode_count %p, desc %p.
\n
"
,
iface
,
debug_dxgi_format
(
format
),
flags
,
mode_count
,
desc
);
return
E_NOTIMPL
;
wined3d
=
IWineDXGIFactory_get_wined3d
(
This
->
adapter
->
parent
);
wined3d_format
=
wined3dformat_from_dxgi_format
(
format
);
if
(
!
desc
)
{
EnterCriticalSection
(
&
dxgi_cs
);
*
mode_count
=
IWineD3D_GetAdapterModeCount
(
wined3d
,
This
->
adapter
->
ordinal
,
wined3d_format
);
IWineD3D_Release
(
wined3d
);
LeaveCriticalSection
(
&
dxgi_cs
);
return
S_OK
;
}
EnterCriticalSection
(
&
dxgi_cs
);
for
(
i
=
0
;
i
<
*
mode_count
;
++
i
)
{
WINED3DDISPLAYMODE
mode
;
HRESULT
hr
;
hr
=
IWineD3D_EnumAdapterModes
(
wined3d
,
This
->
adapter
->
ordinal
,
wined3d_format
,
i
,
&
mode
);
if
(
FAILED
(
hr
))
{
WARN
(
"EnumAdapterModes failed, hr %#x.
\n
"
,
hr
);
IWineD3D_Release
(
wined3d
);
LeaveCriticalSection
(
&
dxgi_cs
);
return
hr
;
}
desc
[
i
].
Width
=
mode
.
Width
;
desc
[
i
].
Height
=
mode
.
Height
;
desc
[
i
].
RefreshRate
.
Numerator
=
mode
.
RefreshRate
;
desc
[
i
].
RefreshRate
.
Denominator
=
1
;
desc
[
i
].
Format
=
format
;
desc
[
i
].
ScanlineOrdering
=
DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED
;
/* FIXME */
desc
[
i
].
Scaling
=
DXGI_MODE_SCALING_UNSPECIFIED
;
/* FIXME */
}
IWineD3D_Release
(
wined3d
);
LeaveCriticalSection
(
&
dxgi_cs
);
return
S_OK
;
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_output_FindClosestMatchingMode
(
IDXGIOutput
*
iface
,
...
...
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